Alexei Sorokin
a67953b840
[XMPP] Respond to ping and track time monotonically
...
This also fetches a necessary update from the XMPPHP upstream.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
8181b28441
Clear out potential duplicates when semi-joining a union
...
Using a left outer join as a semi-join is not a valid approach.
Can still be used for an anti-semi-join.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
318d2cb6ca
Set the character set before making a connection
...
Ideally the character set should be set with the connection, and so this is
exactly what's being done now.
And now the character set code is attempted to be generalised.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
a0f72fe5c6
Avoid ordering just by a timestamp
...
Try to also employ an id when possible.
Involves reworking some of the indices.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
ae4f3176b1
Remove "magic quotes" code and avoid wrong order implode
...
"Magic quotes" were removed in PHP 5.4, no need to mitigate it anymore.
Avoid implode() with the join()-like order of arguments which was deprecated
since PHP 7.4 and implicitly since PHP 5.3.
Also avoid implode() with an implicit separator for stylistic reasons.
mktime() with no arguments has been deprecated since PHP 5.1.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
9e94b7f145
[DATABASE] Switch from PEAR DB to MDB2
2021-07-16 19:44:41 +01:00
Alexei Sorokin
2f7d6ef07b
[ActivityPub][INBOX][Delete] Stop if the ID is not present
2021-07-16 19:44:41 +01:00
Alexei Sorokin
04018ea4ca
[ActivityPub] Fix use of ActivityPubPlugin::pull_remote_profile
...
It does not throw but return null.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
160b6ccd94
Fix "Implement a class for automatic temporary file handling"
...
TemporaryFile::commit throws instead of returning a bool.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
9efbef720d
Avoid use of assignments bare inside statements
...
Either use them in a subroutine call or put parentheses around the assignment.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
7fa4d56f05
Implement a class for automatic temporary file handling
...
And adopt it all over the code.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
b2e009bcd3
[DirectMessage] Simplify the inbox query
2021-07-16 19:44:41 +01:00
Alexei Sorokin
6cb3a0c390
[ActivityPub] Check if a Notice is public via CC as well
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
238652b15d
[ActivityPub] Fix note URIs
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
c3cdde0873
[ActivityPub] Tombstones now have datetimes
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
82f1fc7ca2
[ActivityPub] Implement Failed Queue
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
751b23f6fe
[ActivityPub] Fix DELETE
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
af0366ed58
[ActivityPub] Fix issues concerning Activity URIs
...
And some other minor bugs.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
d71eea1ba4
[DATABASE] Fix use of ORDER BY with DISTINCT
...
statuses/retweets_of_me has performance fixed, so it is also stripped of its
"bad query" status.
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
300c4e3d04
[ActivityPub] Revert moving Disfavor to Queues
...
It seems this kind of notice isn't queued?
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
5f35d9633d
[ActivityPub][Queues] Fix Like
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
c834d27dd6
[TheFreeNetwork] Do not allow lower priority protocols to handle remote actors already handled by the higher ones
2021-07-16 19:44:41 +01:00
Alexei Sorokin
a0a37352c8
[Directory] Fix SQL string quotation
2021-07-16 19:44:41 +01:00
Alexei Sorokin
6e5217dc3a
[Foreign_link] Change the type of "credentials" to blob
...
TwitterOAuthClient::packToken uses \0 as a delimeter which can cause issues on
TEXT or VARCHAR.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
912a0cb16c
[OpenID] Correct table definition types
...
"server_url" should not be blob.
Lengths are adjusted to Auth/OpenID/(PostgreSQL|MySQL)Store.php.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
8290b137fa
[TwitterBridge][DAEMONS] Fix database connection clean-up
2021-07-16 19:44:40 +01:00
Alexei Sorokin
598e8e4d56
[TwitterBridge] Create Foreign_user before Foreign_link
...
To keep foreign key constraints intact.
2021-07-16 19:44:40 +01:00
tenma
b7cf60c7b4
[FFmpeg] Add FFmpeg plugin
...
FFmpeg plugin serves as a better performant/quality alternative to
resize animated GIFs than the ImageMagick plugin.
2021-07-16 19:44:40 +01:00
tenma
228e7c423e
[ImageMagick] Remove unnecessary code
...
ImageMagickPlugin:
- Remove animated thumbnail setting, we'll be able to use FFmpeg for performance
- Remove onFillImageFileMetadata and onCreateFileImageThumbnailSource(), these
are handled just fine by ImageFile
- Bump minor version number
README:
- Update
2021-07-16 19:44:40 +01:00
Alexei Sorokin
e62e429302
[File] Fix file deletion violating foreign keys
2021-07-16 19:44:40 +01:00
Alexei Sorokin
8fc807343b
[RedisCache] Connections should not be shared by daemon threads
2021-07-16 19:44:40 +01:00
Alexei Sorokin
a9ae96fa4c
[Memcached] Do not set persistent connections for daemons
2021-07-16 19:44:40 +01:00
Alexei Sorokin
1e36ceb5b1
[Embed] Fix a query typo in fixup_files.php
...
Regression introduced in ec86de2bc4
2021-07-16 19:44:40 +01:00
Alexei Sorokin
dd8612c39a
[Bookmark] Silence a warning when no tags in BookmarkForm
2021-07-16 19:44:40 +01:00
Alexei Sorokin
df03e5311b
[Bookmark] Fix undefined variable "rendered" in Activity options
2021-07-16 19:44:40 +01:00
Alexei Sorokin
fc7925f4c8
[RSSCloud] Avoid the deprecated in PHP each() function
2021-07-16 19:44:40 +01:00
Alexei Sorokin
1095475645
[RSSCloud] Update schema definition
2021-07-16 19:44:40 +01:00
Alexei Sorokin
cce2c763d3
[RedisCache][DiskCache] Check if unserialize succeeded
2021-07-16 19:44:40 +01:00
Alexei Sorokin
ed08b46c0b
[TwitterBridge] Check if Notice::$lat and Notice::$lon are defined
2021-07-16 19:44:40 +01:00
Alexei Sorokin
03e69e8c31
[DATABASE] Fix remaining misuses of SQL's GROUP BY
2021-07-16 19:44:40 +01:00
Alexei Sorokin
024f5fe3a8
[RequireValidatedEmail] Only check current user posts
...
This check made registration impossible when welcomeuser didn't have validation
as well.
And rename the "grandfatherCutoff" option to "exemptBefore".
"Grandfathering" is a relatively obscure term linked to the history of the
United States of America, so replace that with something self-descriptive.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
5b95c1172a
[EmailAuthentication] Check if e-mail with filter_var
2021-07-16 19:44:40 +01:00
Alexei Sorokin
46ac40d981
Clean Notice_prefs and Fave_tally when a notice is deleted
2021-07-16 19:44:40 +01:00
Alexei Sorokin
83ba7030cc
[ExtendedProfile] Clean up of missing array indices handling
2021-07-16 19:44:38 +01:00
Alexei Sorokin
5196b45e62
[TwitterBridge] Do not fail on missing notice
2021-07-16 19:44:38 +01:00
t3nma
bf274d34c6
[TwitterBridge] Fix issue "Only variables should be assigned by reference"
...
From the docs: "The new operator returns a reference automatically, so
assigning the result of new by reference is not allowed as of PHP 7.0.0"
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
33721c85cd
[ActivityPub][NOTICE] Process attachments
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
7e559f0cd0
[ActivityPub][NOTICE] Fix variable being wrongly reused
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
f3df3762f1
[ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
ce4ceaf8c7
[ActivityPub][NOTICE] Fix other federation protocols mention handling
2021-07-16 19:44:38 +01:00