Diogo Cordeiro
78f0ab022c
[ActivityPub][Inbox] Signature verification after Actor update would always fail
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
f93d8694c3
[AVATAR] Ensure this Action stays secure
2021-07-16 19:44:37 +01:00
Hugo Sales
ff75bb796b
[MEDIA] Move AttachmentAction::sendFile to common_send_file
...
This fixed the wrong content type and status code returned by the Avatar action
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
c7e1352618
[ActivityPub][Inbox] With PHP 7.3 we don't need get_all_headers workaround anymore
...
Furthermore, it was broken on Apache2 because the actual function
doesn't put the resulting array's key in lowercase.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
ad6955e7ff
[Memcached_DataObject] Check if it is possible to sort efficiently
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
25f67a1ce9
[ActivityPub][Inbox] get_all_headers was nginx only
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
bc1af78bf7
[TESTS] Move AcceptHeader from ActivityPub plugin to Core
...
Delete temporary ActivityPub tests (they were to be deleted long ago)
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
8c2d87b3b8
[ExtendedProfile] Fix XML type bug
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
81d50c4ec3
[FORMAT] Run php-cs-fixer on tests/
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
bba9c0d560
[TESTS] Fix CommandInterpreterTest
...
Also corrected a bad refactoring that affected Xmpp plugin test
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
6a9dce2cc5
[PEAR] I'm tired of this issue still popping up, this seems to silence it
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
e8a5347157
[UI] Make neo-quitter default theme
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
7568789f62
[XML] Inscrease types strictness
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
02055dee49
[AVATAR] Temporary ImageFile wasn't
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
44ad0d3a85
[AVATAR] Try to delete tmp avatar if something goes wrong during the process
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
5439ff3ec5
[MEDIA] ImageFile fromUpload method wasn't ensuring uploaded file was an image
2021-07-16 19:44:37 +01:00
Alexei Sorokin
d01f44ee99
[DATABASE] Some query improvements
...
Make common_sql_weight employ standard SQL functions for the timestamp
difference in seconds.
Also replace UTC_TIMESTAMP in the MariaDB-specific part with CURRENT_TIMESTAMP
as it is the only occurence and GNU social sets UTC as a default timezone.
In a delete_orphan_files.php script simplify the main query considerably.
In clean_profiles.php stop using COUNT as if it is ANY, that is unnecessary
punishment for the database. Instead implement the anti-join with a
left outer join.
In Autocomplete and Activitypub_profile use joins instead of a WHERE OR
anti-pattern for the semi-joins.
In lib/ui/galleryaction.php replace a CROSS JOIN with an INNER JOIN.
In actions/sup.php remove a redundant subquery: WHERE is applied before
grouping either way.
2021-07-16 19:44:36 +01:00
Alexei Sorokin
a93c38a9af
[CORE][DATABASE] Another approach to semi-join in the inboxnoticestream query
...
Compared to the solution with INNER JOIN this seems to have better performance
as there is no need to deduplicate the subquery result before use.
2021-07-16 19:44:36 +01:00
Alexei Sorokin
ed4cc01b2f
[DATABASE] Replace NOW() with CURRENT_TIMESTAMP
2021-07-16 19:44:36 +01:00
Alexei Sorokin
434f07430d
[DATABASE] Use "<>" as an SQL non-equality sign in more cases
...
A follow-up to commit 644b417f6c
2021-07-16 19:44:36 +01:00
Alexei Sorokin
9ac632ca2d
[DATABASE] Start transactions with START TRANSACTION
...
"BEGIN" is non-standard and unnecessary.
2021-07-16 19:44:36 +01:00
susdiv
6ea0d441cd
[Autocomplete] Fix postgres incompatible query in AutocompleteAction
2021-07-16 19:44:36 +01:00
susdiv
2a82f2774d
[SCRIPTS] Fix postgres incompatible query in clean_profiles.php
2021-07-16 19:44:36 +01:00
susdiv
4153a93390
[ActivityPub] Fix Postgres incompatible query in Following and Followed collection
2021-07-16 19:44:36 +01:00
rainydaysavings
14ea9b41c2
[THEME][neo-quitter] Added icon for Network in navbar
2021-07-16 19:44:36 +01:00
Hugo Sales
facf3204d3
[FIX] Fix 'Trying to access array offset on value of type null' in AntiBrutePlugin and SimpleCaptchaPlugin when using scripts
2021-07-16 19:44:36 +01:00
tenma
34e1a6ee08
[OStatus] Remove TFN's deprecated Census event and fix small typo in the code
2021-07-16 19:44:36 +01:00
tenma
12945c4d20
[ActivityPub] Remove TFN's deprecated Census event
2021-07-16 19:44:36 +01:00
tenma
bbd9044626
[TheFreeNetwork] Use config + module settings for initialization and online lookup
...
The Census event is now replaced with module settings for populating the
protocols array. With this we can shutdown some plugins and still make
them be checked by TFN.
The performance:high config is now added when deciding whether or not to
do online lookup after the offline lookup fails.
default:
- Add default values for the TFN protocol setting
EVENTS:
- Remove Cencus event
TheFreeNetworkModule
- Remove Census event handler, update protocols array to use module's settings
- Use performance:high config when deciding to do online lookup
2021-07-16 19:44:36 +01:00
tenma
135c50762a
[OStatus] Add TheFreeNetwork module's support in handling profile insertion
...
Ostatus_profile:
- Update createActivityObjectProfile to trigger TFN's assistance in inserting the profile
2021-07-16 19:44:36 +01:00
tenma
9fcccd8b5a
[ActivityPub] Add TheFreeNetwork module's support in handling profile insertion
...
Activitypub_profile:
- Update do_insert to trigger TFN's assistance in inserting the profile
explorer:
- Use the new LRDD's method for grabbing profile aliases
2021-07-16 19:44:36 +01:00
tenma
f1021358ed
[TheFreeNetwork] Handle new StartTFNLookup and EndTFNLookup events
...
EVENTS:
- describe new events
TheFreeNetworkModule:
- add event handlers and necessary auxiliary methods
- minor comment updates
2021-07-16 19:44:36 +01:00
tenma
40bc43215d
[OStatus] Update salmonaction to use the new LRDD's method for grabbing aliases
2021-07-16 19:44:36 +01:00
tenma
8b8157ce25
[LRDD] Add a new method for grabing profile aliases
2021-07-16 19:44:36 +01:00
tenma
a17c010bb9
[ActivityPub] Autofix profile URIs through alias discovering
...
Activitypub_profile:
- Add updateUri method
explorer:
- Add grab_aliases method
- Update grab_local_user's online course to grab and test aliases
2021-07-16 19:44:36 +01:00
Alexei Sorokin
aa2f09fa3c
[UI] Fix group member pages showing up twice
2021-07-16 19:44:36 +01:00
Alexei Sorokin
26622cb84b
[UI] Order groups in join descending order in profiles
2021-07-16 19:44:36 +01:00
Hugo Sales
3f8f77dff1
[CORE] Fix 'Array and string offset access syntax with curly braces is deprecated' in AuthCryptModule and DirectionDetectorPlugin
2021-07-16 19:44:36 +01:00
Alexei Sorokin
7b1c3dbb3f
[Nodeinfo] Count active users for full days and without silenced
2021-07-16 19:44:36 +01:00
Alexei Sorokin
9396539f58
[CORE] Re-format the inboxnoticestream query
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
4caa394db6
[UI] Small improvement on attachment's visual
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
617e3af5cd
[SensitiveContent] Fix plugin settings
...
Also reformatted the code and minor bug fixed it
2021-07-16 19:44:36 +01:00
nee
7ee8751b8e
[SensitiveContent] Add option to activate for not-logged-in visitors
...
Remove redundant setting retrival code.
An example config.php entry to activate the new config:
$config['site']['sensitivecontent']['hideforvisitors'] = true;
2021-07-16 19:44:36 +01:00
nee
2419d85edf
[SensitiveContent] Don't crash in GNU social classic
...
When an attachment has no thumbnail (for example when it's a video).
2021-07-16 19:44:36 +01:00
Hugo Sales
5b3105402e
[SensitiveContent] Fix bug where having this plugin activated would not size thumbnails correctly
2021-07-16 19:44:36 +01:00
Hugo Sales
b7ed15c865
[CORE] Make avatars be served with the same mechanism as attachments
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
1ea12e0cdf
[PLUGINS] Remove VideoThumbnails not useful anymore
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
6598b89db0
[ActivityPub] Fix profile url handling
2021-07-16 19:44:36 +01:00
tenma
1d7855a70d
[INSTALL] Allow the setup of sslproxy during install time
...
install.php:
installer.php:
- add option field and handle logic
display.css:
- hardcode ssl's label margin-top value so all options are correctly displayed
2021-07-16 19:44:36 +01:00
tenma
eac3f58e9a
[DOCUMENTATION] Add further notes to the nginx sample config
2021-07-16 19:44:36 +01:00