Roland Häder
951006dd10
more spaces + some curly spaces added
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:51:54 +01:00
Roland Häder
41a36606c6
added spaces + some curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2017-03-19 00:50:19 +01:00
Michael
9251d2af6f
Ensure that the spool path is set
2017-02-19 10:13:40 +00:00
Michael
2bfc40d74c
Bugfix for not createable spool path
2017-02-19 08:23:21 +00:00
Michael
ea22828d37
Alternate solution for pull request 3124
2017-01-28 12:19:04 +00:00
Roland Haeder
bc9cb5e5f6
added curly braces + fixed indenting according to code review by Hypolite
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2016-12-30 21:48:09 +01:00
Roland Häder
b33a28c082
Continued rewriting a bit:
...
- more usage of dbm::is_result()
- nicer look of code
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-22 17:03:41 +01:00
Roland Häder
1c0bd91458
Coding convention applied:
...
- added curly braces
- added space between if/foreach and brace
- avoided 2 return statements (true/false) by replacing them with just one
- added TODO for applying above to all findings
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-22 16:59:48 +01:00
Roland Häder
51716957b2
converted more to dbm::is_result() + added braces/space
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-20 15:37:27 +01:00
Roland Häder
dac1dbd3e9
Merge branch 'rewrites/dbm_is_result' into develop
2016-12-19 14:47:05 +01:00
Roland Häder
a96eb3428d
Used more dbm::is_result() instead of (!$r) or (!count($r)), still there are
...
more pending ...
Also put SQL table columns into back-ticks.
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-19 14:46:33 +01:00
Roland Häder
884f44ce94
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-19 14:27:16 +01:00
Roland Häder
a905522eb5
Cleanup for #3010 - added spaces, thanks to @annando .
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-14 09:42:36 +01:00
Roland Häder
63610c7b73
Merge branch 'rewrites/dbm_is_result' of github.com:Quix0r/friendica into rewrites/dbm_is_result
...
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
include/Photo.php
include/api.php
include/cache.php
include/dbstructure.php
include/enotify.php
include/items.php
include/onepoll.php
include/queue_fn.php
include/session.php
include/text.php
mod/contacts.php
mod/dfrn_request.php
mod/display.php
mod/events.php
mod/item.php
mod/message.php
mod/msearch.php
mod/photos.php
mod/poco.php
mod/profile.php
mod/proxy.php
mod/videos.php
update.php
view/theme/diabook/theme.php
view/theme/vier/theme.php
2016-12-13 11:00:44 +01:00
Roland Häder
6a8a36f12d
More usage of dbm::is_result($r) instead of count($r):
...
- count() returns very different results and never a boolean (not even false on
error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
done in PHP because of its lazyness. But it is discouraged if it comes to
more clean code.
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-13 10:44:13 +01:00
Michael
17f15e793f
Issue 2999: Better Mastodon handling
2016-12-12 06:46:02 +00:00
Michael
6619e0791d
Much more standards
2016-12-01 22:52:35 +00:00
Michael
6845775ff9
Store spooled data
2016-12-01 20:53:18 +00:00
Michael
eff4ad2e0a
Spool items that couldn't be stored
2016-12-01 13:50:26 +00:00
rabuzarus
e9226eaf45
parse_url: recognize image/video/audio files + move functions into own class
2016-11-24 01:11:22 +01:00
Tobias Diekershoff
44d79cbc27
Merge pull request #2911 from annando/1611-well-formatted-uri
...
URI of "remote self" are looking better now.
2016-11-15 09:53:14 +01:00
Michael
d4e3bc1924
Added documentation
2016-11-15 07:05:43 +00:00
rabuzarus
9878974e1f
fix photos page permissions
2016-11-14 18:49:51 +01:00
Michael
88d073f3d9
URI of "remote self" are looking better now.
2016-11-14 06:55:17 +00:00
Michael
6dfaa5a95f
Some more standard stuff
2016-11-13 19:09:47 +00:00
Michael
2937df21ad
Standard stuff
2016-11-13 08:50:01 +00:00
Michael
e5f55a5919
Improved handling with wrong formatted urls and fetchinfo
2016-11-12 20:23:00 +00:00
Michael
2e59eec35d
Added some comments
2016-10-29 22:06:18 +00:00
Michael
8ab90f02c3
Shadow entry mechanism improved
2016-10-29 21:27:56 +00:00
Michael
7bd79c67a7
Avoiding deadlocks and small sql improvements
2016-10-29 20:17:33 +00:00
Michael Vogel
8cab3b5592
More transactions, more queries on uncommitted data
2016-10-24 08:10:27 +00:00
Michael Vogel
ee5ada6991
We now use memcache if configured and installed.
2016-10-23 21:59:40 +00:00
Michael Vogel
b429b85680
CSR changes, split dbclean in separate processes if worker is active
2016-10-22 10:14:41 +00:00
Michael Vogel
501c45def5
Some more improved queries
2016-10-21 18:25:21 +00:00
Michael Vogel
3e5cf5290e
Improved queries, more uncommitted queries
2016-10-17 18:38:51 +00:00
Michael Vogel
e5c7ce0902
Use "last-item" in the contact table instead of an expensive sql query
2016-10-14 05:45:32 +00:00
Michael Vogel
6abac720e2
Small performance tweaks for "item_store" as well.
2016-10-07 06:05:43 +00:00
Michael Vogel
5fb2e47809
Increased performance when storing items
2016-10-05 16:12:53 +00:00
Roland Haeder
c825cc8d0d
This merge brings back dbm::is_result() where I could find it.
...
Merge branch 'develop' of github.com:friendica/friendica into rhaeder-develop
Signed-off-by: Roland Haeder <roland@mxchange.org>
2016-09-18 23:21:18 +02:00
Michael Vogel
7157ca3809
Fastlane is now working with any priority level
2016-08-03 15:59:25 +02:00
Michael Vogel
668da905e2
"proc_run" is now called with priority.
2016-08-01 07:48:43 +02:00
Michael Vogel
0b1188b7fe
Imrpoved avatar handling when storing them/partly use of "micro"
2016-06-25 13:56:55 +02:00
Michael Vogel
0e35427dfc
New fields "author-id" and "owner-id" in the item table
2016-06-15 21:20:55 +02:00
Michael Vogel
81395fe385
Avoid time travel in posts (received before created)
2016-06-13 22:21:33 +02:00
Roland Haeder
3e701b90ac
Continued rewriting:
...
- use dba::is_result() everywhere (where I found the old, bad way)
- converted some spaces -> tabs for code
- converted some CRLF -> LF as mixures of both is not good
Signed-off-by: Roland Haeder <roland@mxchange.org>
2016-05-01 14:24:44 +02:00
Michael Vogel
6cdcbabb3b
Use the "attachment" element instead of a mixture of several elements
2016-05-01 13:48:52 +02:00
Michael Vogel
535f382c4e
Bugfix: "default_group" behaviour wasn't implemented correctly
2016-05-01 13:47:24 +02:00
Michael Vogel
4b0506879a
Post update ist now done.
2016-05-01 13:47:24 +02:00
Michael Vogel
f2ce7f51cd
New OStatus implementation
2016-05-01 13:47:24 +02:00
Michael Vogel
22c889c319
Retraction do work as well
2016-05-01 13:46:08 +02:00
Michael Vogel
49d52faab5
Use the "attachment" element instead of a mixture of several elements
2016-04-17 20:43:41 +02:00
Michael Vogel
d6a79abb68
Bugfix: "default_group" behaviour wasn't implemented correctly
2016-04-13 22:21:23 +02:00
Michael Vogel
9f57425d08
Post update ist now done.
2016-04-03 16:36:05 +02:00
Michael Vogel
b93e1d73a1
New OStatus implementation
2016-03-30 12:43:15 +02:00
Michael Vogel
16b92af71f
Retraction do work as well
2016-03-17 12:24:23 +01:00
Michael Vogel
2ca6cdf6b6
Improvements how gcontact entries are updated
2016-02-13 12:26:58 +01:00
Michael Vogel
7b2fadcf43
Get rid of the "guid" table. We don't need it anymore.
2016-02-09 10:21:10 +01:00
Michael Vogel
7af3dd01d8
Poller: Check the number of used database connections
2016-02-09 06:42:00 +01:00
Michael Vogel
d408cea871
DFRN import has now gone live
2016-02-05 21:25:20 +01:00
Michael Vogel
2bd36e5628
Feed should work now as well
2016-02-04 23:52:06 +01:00
Michael Vogel
3a649047df
DFRN: Contact-id is now stored depending on the author/Some more bugfixes
2016-02-04 12:51:34 +01:00
Michael Vogel
2d0c2990ea
Differences fixed between old and new code
2016-02-03 23:04:52 +01:00
Michael Vogel
d9b5d6d5f5
Merge remote-tracking branch 'upstream/develop' into 1601-dfrn-import
2016-02-03 08:34:11 +01:00
Michael Vogel
47d2e3b142
Added some documentation
2016-02-03 05:00:26 +01:00
Michael Vogel
f604f13d7d
New method to create a guid if none was given
2016-02-02 20:57:19 +01:00
Michael Vogel
eb17fe7324
Some missing parts added
2016-01-30 14:13:58 +01:00
Michael Vogel
69457a4a5b
DFRN import seems to work. Improvements are possible :-)
2016-01-30 02:57:40 +01:00
Michael Vogel
8412eb7066
Merge remote-tracking branch 'upstream/develop' into 1601-dfrn-import
2016-01-29 10:59:06 +01:00
fabrixxm
863d49ccd0
Merge pull request #2300 from annando/1601-gcontact-guessing
...
gcontact-id now depends on the owner, not the author of a post
2016-01-29 05:27:58 +01:00
Michael Vogel
b3e86f4e6b
There is now a central function for item notifications
2016-01-28 22:58:05 +01:00
Michael Vogel
a93d35bfda
gcontact-id now depends on the owner, not the author of a post
2016-01-28 18:06:17 +01:00
Michael Vogel
afed5f3afc
Test code for the DFRN import
2016-01-27 11:30:12 +01:00
Michael Vogel
62de6be495
Switched to static methods for DFRN
2016-01-25 15:20:58 +01:00
Michael Vogel
44091aa631
Removed unused functions
2016-01-24 00:11:16 +01:00
Michael Vogel
7371318376
Merge remote-tracking branch 'upstream/develop' into 1601-dfrn
2016-01-23 18:50:14 +01:00
Michael Vogel
61cebdb75e
Workaround for the case when items are stored without a contact id
2016-01-23 12:39:37 +01:00
Michael Vogel
c66b4387bf
dfrn functions could now work/Removed unused code
2016-01-22 20:26:11 +01:00
Michael Vogel
fe5705e547
Merge remote-tracking branch 'upstream/develop' into 1601-dfrn
2016-01-21 23:05:02 +01:00
Michael Vogel
98ccefebcf
Reworked check for double encoded Diaspora signatures
2016-01-20 16:00:43 +01:00
Fabrixxm
7e83ba090f
Merge branch 'hotfix_diaspora' into develop
2016-01-20 08:50:18 +01:00
Michael Vogel
c6b0e57aa4
Bugfix: Comments weren't relayed anymore to Diaspora due to a Diaspora change
2016-01-20 08:40:04 +01:00
Michael Vogel
d5e1f33506
OEmbed and parse_url are now cached in dedicated tables
2016-01-14 23:59:51 +01:00
Michael Vogel
c4ba035ee3
Add some analysing stuff, rendered value is written now more often
2016-01-14 21:56:37 +01:00
Michael Vogel
2bad2cdd91
More fields in gcontact, contact search respects "hide" setting
2016-01-06 14:13:59 +01:00
Michael Vogel
75e2ec01fe
The gcontact will now be connected to the items
2016-01-05 15:34:27 +01:00
Michael Vogel
c8449e6019
Code cleanup
2016-01-04 20:41:24 +01:00
Michael Vogel
fba08409b4
Some more places that need to be adjusted
2016-01-03 00:28:11 +01:00
Michael Vogel
6c3d0f82c2
Bugfix: The duplicate check for likes wasn't reliable
2016-01-03 00:17:28 +01:00
rabuzarus
3df5c17124
reformat todo according to doxygen style
2015-12-25 23:17:34 +01:00
Michael Vogel
f42a7a3469
Just one more place where we had forgotten to use the bbcode function for the about text
2015-12-15 00:11:19 +01:00
Michael Vogel
1a170c8743
Merge remote-tracking branch 'upstream/develop' into 1512-contact-rework
...
Conflicts:
mod/contacts.php
mod/crepair.php
2015-12-03 14:38:04 +01:00
Michael Vogel
b0898cc461
Bugfix: The duplicate check sometimes seemed to have scrambled the posts
2015-11-30 23:13:56 +01:00
Michael Vogel
79092f149c
Requests for soapbox and freelove accounts are automatically accepted
2015-11-28 01:03:26 +01:00
Michael Vogel
a9b2b48d08
Some small improvements to the OStatus export
2015-11-27 23:16:54 +01:00
Michael Vogel
6b5ea74bbd
Deactivated some attachment part in the old functions
2015-11-25 08:28:17 +01:00
Michael Vogel
b53ae0d42a
Bugfix: The own avatar was (sometimes?) changed back when it was changed.
2015-11-17 08:39:09 +01:00
Michael Vogel
6ddf62bdf7
Merge remote-tracking branch 'upstream/develop' into 1511-avatar
2015-11-13 09:48:34 +01:00
Michael Vogel
c951123b76
Cleaned code
2015-11-13 09:45:15 +01:00
Michael Vogel
11905c0bec
The avatar picture wasn't updated at the contact table
2015-11-13 08:45:14 +01:00
Michael Vogel
c95afa525e
Some SQL queries were optimized to reduce the amount of write operations.
2015-11-12 08:59:29 +01:00
Michael Vogel
ecf65e52ee
OStatus: send the coordinates in an additional field
2015-10-24 20:42:47 +02:00
Michael Vogel
7f9711ffe6
Delete event when the item is deleted
2015-10-17 01:25:25 +02:00
Michael Vogel
dd46a6ff68
Store the event when a summary or a description is set
2015-10-17 00:58:22 +02:00
Michael Vogel
fcc185a182
Unsure to store the guid with new events
2015-10-16 23:50:34 +02:00
rabuzarus
649578ae33
Merge develop-new into event-attendance-new
...
Conflicts:
include/conversation.php
2015-10-11 19:39:55 +02:00
Tobias Diekershoff
9e2b62b082
Merge pull request #1948 from annando/1510-more-escaping
...
Handling contact names with > and <
2015-10-10 18:48:20 +02:00
Michael Vogel
ba06d659f1
Bugfix: Feeds weren't imported if a post with the same URI existed.
2015-10-10 14:26:07 +02:00
rabuzarus
0eae67ea48
update attendance state on profile wall
2015-10-09 14:20:01 +02:00
Michael Vogel
16da708e07
Contact names with ">" and "<" are a problem ...
2015-10-09 07:39:38 +02:00
rabuzarus
d2d084b814
treat attendance as like activity
2015-10-08 18:35:33 +02:00
Michael Vogel
61c3ce7a21
Bugfix: The contact names had to be escaped
2015-10-08 00:25:55 +02:00
Michael Vogel
abe31d7e60
Merge remote-tracking branch 'upstream/develop' into 1509-new-feed-import
2015-09-29 10:27:04 +02:00
Fabrixxm
880dda4257
Merge branch 'master' back into develop
2015-09-29 10:00:13 +02:00
Michael Vogel
7f8284eb1b
New functionality to import feeds. Now with support of every used feed format (RSS, RDF, Atom)
2015-09-27 14:02:05 +02:00
Sandro Santilli
e9f001aa5d
Use ampersend to separate postopts, and explicit test for empty string
2015-09-23 11:39:36 +02:00
Sandro Santilli
741b82ccab
Use x() function to check for array containement (I think)
...
this is response to @fabrixxxm comment
2015-09-23 11:11:12 +02:00
Sandro Santilli
2a2dd6a1b9
Remove duplicated calls to language detection
...
Also avoids overriding existing "lang" specification in an item
2015-09-23 10:47:34 +02:00
Fabrixxm
554948c22a
Adds checks for mcrypt module for RINO2
...
- check for module on install
- check for module when RINO2 is enabled in admin
- check for module when RINO2 is used in communications
2015-09-22 09:50:24 +02:00
Michael Vogel
f2cb9b889e
Only set a prefix for the guid if it is a locally stored item
2015-09-07 23:33:02 +02:00
Michael Vogel
6088f59c33
Bugfix: "remote self" items weren't posted by connectors
2015-09-07 23:14:18 +02:00
Michael Vogel
fd239ebf7b
Try to repair OStatus subscriptions
2015-09-03 22:18:25 +02:00
Michael Vogel
3246352ba8
More detailled log entries
2015-08-29 16:55:25 +02:00
Michael Vogel
38c8431527
Rino Bugfix: A variable was used that never was fetched
2015-08-29 11:38:40 +02:00
Michael Vogel
b52bc71c6c
Now you can define the duration of the cache entries.
2015-08-24 17:24:14 +02:00
Michael Vogel
bacd71e1c6
Replace random strings with guids where appropriate.
2015-08-14 07:48:28 +02:00
Michael Vogel
a2d742ec91
For unique values we should use our guid function - not the random function
2015-08-14 00:40:36 +02:00
Michael Vogel
fca8aecc9b
Show "Redmatrix" as network name.
2015-07-16 10:09:59 +02:00
Michael Vogel
2b3ebb9c3e
Follow/Unfollow now works from OStatus.
2015-07-13 23:50:33 +02:00
Michael Vogel
fcb3cbffe4
OStatus: Use the GUID format for the link to the item
2015-06-29 21:49:42 +02:00
Michael Vogel
b795bf2935
Merge pull request #1683 from fabrixxm/issue-1655
...
Deprecate RINO1 function, implements RINO2, remove unused crypro functions
2015-06-27 17:39:00 +02:00
Michael Vogel
7f052b654f
PuSH now supports answers to OStatus messages inside of Friendica threads as well.
2015-06-25 07:18:02 +02:00
Fabrixxm
511c2d2c91
rino: settings in admin, choose lowest common on notify
2015-06-23 17:36:26 +02:00
Fabrixxm
6fbb02fb93
RINO 2 based on php-encryption
...
reenable RINO 1 functions, add a deprecation note.
use by default RINO 2 , with crypto from php-encryption
fallback to RINO 1 for old nodes.
2015-06-23 16:13:09 +02:00
Fabrixxm
7d83a19fd4
Disable RINO
...
Comment out functions for RINO crypt and disable RINO request and response.
2015-06-23 12:02:35 +02:00
Michael Vogel
168906f9c9
Code cleanup
2015-06-20 09:15:19 +02:00
Michael Vogel
6fbb03801c
The OStatus completion is now called before the original item is stored.
2015-06-20 08:44:29 +02:00
Michael Vogel
e0147a24ad
Send poco data in the atom entries.
2015-06-13 09:59:17 +02:00
Michael Vogel
ad45ff7eb1
OStatus: Notifier for Friendica, better thread completion
2015-06-12 00:39:56 +02:00
Michael Vogel
cb0351dba0
Send a salmon notification to every mentioned person.
2015-06-09 08:27:04 +02:00
Michael Vogel
a3c497190d
Complete new OStatus import.
2015-06-07 23:18:02 +02:00
Michael Vogel
f34135f34d
OStatus: Attachment links are now added as enclosures
2015-06-06 13:15:37 +02:00
Michael Vogel
ba36910343
Removed bad plink detection.
2015-06-03 21:03:46 +02:00
Michael Vogel
b60677ef1b
OStatus: New fields in OStatus export/ Auto-tagging of replyed authors.
2015-06-03 01:26:46 +02:00
Tobias Diekershoff
7305a27392
Merge pull request #1647 from annando/1506-performance
...
Performance improvements when searching for existing GUIDs
2015-06-02 22:46:07 +02:00
Michael Vogel
bea70296bf
Fixes slow performance after one of the last pull requests.
2015-06-02 22:07:39 +02:00
Michael Vogel
dd06912493
Avoiding performance problems.
2015-06-02 20:34:48 +02:00
fabrixxm
20b14b053a
mask '#' in [url]
url
...
fix #1514
2015-06-02 18:59:46 +02:00
Michael Vogel
2856042824
Send a hubsub notification for every comment
2015-05-31 10:38:00 +02:00
Michael Vogel
a3118e0a6e
Cleaning the code from several tests.
2015-05-30 21:08:24 +02:00
Michael Vogel
e66489d67f
PuSH: Publishing moved to a new process. OStatus comments are now published to all subscribers.
2015-05-30 20:47:53 +02:00