Alexei Sorokin
85be003cf5
[Embed][CORE] hex2bin should always get an even amount of symbols
2019-11-01 08:29:52 +03:00
tenma
bddc1c0f9d
[ActivityPub] Fix successive "Cannot use object of type stdClass as array" errors in the postman
2019-11-01 02:23:39 +00:00
tenma
01f6d83b86
[MODULES] Fix VERSION constant to MODULE_VERSION in various modules
2019-10-30 23:52:14 +00:00
Diogo Cordeiro
aa994ee4fb
[CORE] Allow to force non-fancy URLs
...
Essential to allow toggling fancy urls later. In some cases it is
critical to keep the URL an unique URI.
2019-10-27 17:40:37 +00:00
Diogo Cordeiro
d058a70557
[MEDIA] Simplify Attachment actions
2019-10-19 02:57:32 +01:00
Diogo Cordeiro
7298468df7
[FILE] Fix Return value of File::getFileOrThumbnailSize() must be of the type int, null returned
2019-10-19 01:16:37 +01:00
Diogo Cordeiro
63caa5044d
[LIB_REFACTOR] Fix minor issues
2019-10-19 00:51:52 +01:00
tenma
2ae93dbec6
[ActivityPub] Revert usage of bitwise-operator & in the inbox_handler class.
2019-10-17 20:25:00 +01:00
Diogo Cordeiro
b434bead2c
[ActivityPub] The protocol allows content to be null, GNU social doesn't, we'll reject silentiously
...
Reported by kaniini
2019-10-11 19:09:12 +01:00
Diogo Cordeiro
6284b155b8
[ActivityPub] attributedTo itself is not required, if not present then it should be inferred from the actor
...
Reported by kaniini
2019-10-11 17:51:20 +01:00
Diogo Cordeiro
b12c2d17d5
[ActivityPub] Fix security issue concerning remote profile deletes
...
Reported by kaniini
2019-10-11 17:41:43 +01:00
Diogo Cordeiro
5fb1e26a4c
[ActivityPub] Inbox Handler: Remove old guzzle import
...
Improve exception information in doc blocks
2019-10-11 17:18:50 +01:00
Diogo Cordeiro
6423750250
[ActivityPub] Slightly increase robustness on exception handling
...
Also ported Activitypub_rsa to PHP7
Minor indentation fixes
2019-10-11 17:08:41 +01:00
Diogo Cordeiro
d9b5ef1cee
[ActivityPub] Consistent headers in explorer requests
...
Minor indentation fixes
2019-10-11 16:00:14 +01:00
Miguel Dantas
f1717bde51
Fix 'Call to a member function getPayload() on null'
...
Trying to enable the RedisCache with the latest nightly, getting this with the daemon:
sep 25 11:40:18 friedrich startdaemons.sh[21428]: PHP Fatal error: Uncaught Error: Call to a member function getPayload() on null in /var/www/social/plugins/RedisCache/RedisCachePlugin.php:96
sep 25 11:40:18 friedrich startdaemons.sh[21428]: Stack trace:
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #0 /var/www/social/lib/util/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:herds...', Object(HubSub), NULL, 86400, false)
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #1 /var/www/social/lib/cache/cache.php(202): Event::handle('StartCacheSet', Array)
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #2 /var/www/social/classes/Memcached_DataObject.php(520): Cache->set('gnusocial:herds...', Object(HubSub))
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #3 /var/www/social/classes/Memcached_DataObject.php(52): Memcached_DataObject->encache()
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #4 /var/www/social/classes/Managed_DataObject.php(50): Memcached_DataObject::getClassKV('HubSub', 'hashkey', 'a38b9dc516371af...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #5 /var/www/social/plugins/OStatus/classes/HubSub.php(47): Managed_DataObject::getKV('hashkey', 'a38b9dc516371af...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #6 /var/www/social/plugins/OStatus/lib/hubprepqueuehandler.php(68): HubSub::getByHashkey('https://herds.e ...', 'https://raki.so ...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #7 /var/www/social/plugins/RedisQueue/classes/RedisQueueManager.php(58): HubPrepQueueHandl in /var/www/social/plugins/RedisCache/RedisCachePlugin.php on line 96
Sign in to j
2019-09-26 11:29:31 +01:00
Miguel Dantas
c6f4f40bba
[Embed][CORE] Fixes 'Invalid Filename' on Embed. Regex didn't get updated
2019-09-26 11:29:31 +01:00
Alexei Sorokin
65f1b1e1e3
Fix minor git merge resolving issues
2019-09-18 17:43:00 +03:00
Alexei Sorokin
ad91ef66bd
[SCRIPTS] Set PUBLICDIR in plugin scripts as well
2019-09-18 17:15:00 +03:00
Alexei Sorokin
6bfa593988
[DAEMONS] Move resetDb to the Daemon class
...
As it is used inside the Daemon class now, it should always be available.
2019-09-13 22:08:42 +03:00
Diogo Cordeiro
3ea580b537
[ActivityPub] Add missing parenthesis in class instantiation
...
Fixed some issues related to thrown exceptions in the doblocks; also boolean -> bool
2019-09-13 18:58:41 +01:00
Alexei Sorokin
87b0b493eb
[ActivityPub] Fix an unhandled error in onStartGetProfileFromURI
2019-09-13 20:55:23 +03:00
Diogo Cordeiro
4eb4a2de00
[ActivityPub] Fix some bugs with onStartNoticeSearch
...
Refactored Activitypub_profile::ensure_web_finger to Activitypub_profile::ensure_webfinger
Do not throw exceptions in the handling of this event because we don't
want to stop the regular search just because we were unable to find
ActivityPub actors or notes.
2019-09-13 18:10:20 +01:00
Alexei Sorokin
1f2f57b03b
[CORE] Fix logging of very early failures
2019-09-13 12:11:43 +03:00
Alexei Sorokin
4afaad3df5
[DATABASE][MariaDB] Properly account for foreign keys
2019-09-13 10:34:48 +03:00
Diogo Cordeiro
c3ba2e0f94
[BugFix] Plugins ExtendedProfile and OverwriteThemeBackground - admin is identical to system path names.
2019-09-12 23:18:50 +01:00
Alexei Sorokin
693c3168da
[OStatus] The unsubscribe state also needs a label
2019-09-12 14:19:21 +03:00
Alexei Sorokin
8f309bc768
Merge branch 'pgsql_support' into nightly
2019-09-12 12:01:50 +03:00
Alexei Sorokin
1a0d6a90c2
[INSTALL] Fix lib/util/installer.php import path
2019-09-12 11:52:04 +03:00
Diogo Cordeiro
7f2019b4af
[MODULES] Make disable in admin panel effective
2019-09-12 04:50:46 +01:00
Alexei Sorokin
ee7f0a2016
[DATABASE] Re-introduce PostgreSQL support
2019-09-11 14:14:40 +03:00
Alexei Sorokin
644b417f6c
[DATABASE] Use "<>" as an SQL non-equality sign
...
"!=" is not SQL compliant.
2019-09-11 13:27:36 +03:00
Alexei Sorokin
471576d6e8
[DATABASE] Columns not in GROUP BY must not be queried
2019-09-11 13:12:41 +03:00
Alexei Sorokin
7ee8aa7838
[DATABASE] Re-introduce the enum type abstraction
2019-09-11 12:48:28 +03:00
Alexei Sorokin
af63e9a7ad
[DATABASE] Set all primary keys as "not null" explicitly
2019-09-11 12:27:40 +03:00
Alexei Sorokin
95c7344557
[DATABASE] Various table schema related fixes
2019-09-11 12:07:54 +03:00
Alexei Sorokin
0c936e54ba
[DATABASE] Re-order tables to be created
...
Foreign keys need to be created after the respective tables are already in
place. This order makes sure this is the case.
2019-09-11 11:56:36 +03:00
Alexei Sorokin
62b90c29db
[DATABASE] Introduce a bool type in schema
...
PostgreSQL has a clear distinction between integers and booleans, so it makes
sense to draw a clear line.
2019-09-11 11:25:39 +03:00
Alexei Sorokin
6911b499d3
[DATABASE] Consistently use the "LIMIT $limit OFFSET $offset" syntax
...
The "LIMIT $offset, $limit" syntax is only supported by MySQL and MariaDB.
2019-09-11 10:12:49 +03:00
Alexei Sorokin
44f4c9374d
[DATABASE] Use time intervals in a SQL standard compliant way
2019-09-11 09:58:13 +03:00
Alexei Sorokin
11dabbe44d
[DATABASE] Only use single quotation marks for SQL strings
...
Double quotation marks are only used for identifiers in the SQL standard.
2019-09-11 09:46:30 +03:00
Alexei Sorokin
0a5a3845db
[DATABASE] Set NULL in DB_DataObject in a more reliable manner
...
Also stop assuming that FeedSub::sub_state (enum) and FeedSub::sub_end
(datetime) can possibly be set to an empty string.
2019-09-11 08:32:19 +03:00
Alexei Sorokin
5b797328f2
[DATABASE] Always quote identifiers
...
The code used to operate under the assumption that MariaDB doesn't support
quoting identifiers. Not only is that not exactly true, but MariaDB has
reserved keywords that cannot be used as table or column names unquoted.
2019-09-11 08:15:16 +03:00
Alexei Sorokin
b89f1ad7d8
[CORE] Another inboxnoticestream improvement
2019-09-10 22:25:45 +03:00
Alexei Sorokin
b0104d9992
[DAEMONS] Switch daemons to double-forking for daemonisation
2019-09-10 21:14:27 +03:00
Alexei Sorokin
9d8f4c774f
[DAEMONS] Properly disconnect daemons from the database
2019-09-10 20:25:28 +03:00
Diogo Cordeiro
8b7a22ecd9
Merge branch 'nightly' of biodantas/gnu-social into nightly
2019-09-10 17:11:00 +00:00
Miguel Dantas
a4e6db8d76
[OpportunisticQM] Revamped plugin to be able to use other poll based queuemanagers, no just the DB
2019-09-05 01:39:00 +02:00
Miguel Dantas
78506d5249
[StompQueue] Changed StompQueueManager to use polling rather than sockets
2019-09-05 01:39:00 +02:00
Miguel Dantas
6747b18b75
[PLUGINS] Added UnQueue, a new default plugin which does all actions immediately
2019-09-05 01:39:00 +02:00
Miguel Dantas
544f13c52a
[PLUGINS] Added DBQueue plugin
2019-09-05 01:38:59 +02:00