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
60c82bc9a0
[EXTLIB][VALIDATE] Declare everything as static
...
As was originally intended by the author and is expected.
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
d045bf6f5c
[Managed_DataObject] Remove the "timestamp" type
...
It is converted to "datetime" in lib/database/schema.php
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
e051572f84
[Profile] Allow grantRole to work when role exists
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
01093e3583
[DATABASE][MariaDB] Always use LONGBLOB for "blob"
...
"blob" is practically used with the expectation of unlimited length, which is
true with PostgreSQL's bytea, but not with MariaDB's BLOB, which is limited to
64KiB.
So instead use LONGBLOB, which has a maximum of 4GiB, effectively unlimited.
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
b0b10cf186
[Queue_item] There is no "modified" attribute
...
Fixes a regression introduced in ec86de2bc4
2021-07-16 19:44:40 +01:00
Alexei Sorokin
e8f5e34202
Revert "[CORE] Avoid the old "reply" relation in inboxnoticestream"
...
It is needed for mentions.
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
2de195d20c
[NOTICES] Restore FullNoticeStream
...
But only allow a select number of verbs.
This is to display optional subscription notices.
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
6d203d42e9
[DATABASE] Enable fulltext search by default
...
Also rename fulltext indices to more fitting names
and move the check from classes into database/schema.php
2021-07-16 19:44:40 +01:00
Alexei Sorokin
974404bcfd
[DATABASE][PostgreSQL] Add fulltext search support
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
t3nma
d7ec199793
[COMPOSER] Add new php-ffmpeg package
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
Alexei Sorokin
abacbf3e0a
[ACTIONS] Fix selftag
2021-07-16 19:44:38 +01:00
Alexei Sorokin
8c939b70cc
[UTIL] Fix up common_ensure_session()
...
Give priority to cookies over GET.
Make sure session ids have only expected characters
(PHP file session handler's limitation).
Replace a mostly useless log warning with a debug message.
2021-07-16 19:44:38 +01:00
Alexei Sorokin
881ea12f3f
[EXCEPTIONS] Inherit the Previous Exception parameter
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
4c92cc967b
[MEDIA] fromUrl now supports using original file name
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
Diogo Cordeiro
30024b4d47
[ActivityPub][SCRIPTS] Add fix_subscriptions.php
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
4dfa7f374a
[TheFreeNetwork][fix_duplicates.php] Don't die because you couldn't federate an undo follow
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
f81b578a37
[TheFreeNetwork][fix_duplicates.php] Small improvements on queries performed
2021-07-16 19:44:38 +01:00
Alexei Sorokin
1667d727b4
Set HTTP status codes with http_response_code()
2021-07-16 19:44:38 +01:00
Alexei Sorokin
3429a3644d
[Favorite] Fix "Properly trigger DisfavorNotice on profile deletion"
...
Calling find() inside delete() is probably not a good idea.
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
10f0a15614
[VersionBump] 2.0.0alpha0
...
Ran composer update and locale updater
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
31003c8914
[TheFreeNetwork] Add Readme
...
Improve script fix_duplicates.php's comments
2021-07-16 19:44:38 +01:00
t3nma
f476708f3a
[TheFreeNetwork] Add fix_duplicates script
2021-07-16 19:44:38 +01:00
t3nma
bda5a7db97
[TheFreeNetwork] Small rewrite to the onStartTFNLookup event
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
2a863ba746
[MODULES] Make default loading attributes available in global config
2021-07-16 19:44:38 +01:00
t3nma
119783f80e
[ActivityPub][QUEUES] Handle Create (AS1 POST) verb properly
...
Fixes a bug introduced in e504d13120
2021-07-16 19:44:38 +01:00
Alexei Sorokin
caac2cea44
[SCHEMA] Better DBMS information fetching
...
On PostgreSQL:
- Parse defaults for strings and booleans properly.
- Parse the "serial" definition type properly.
- Get information on the "enum" definition type.
- Re-work getting information about keys/indices.
On MariaDB:
- Get information about lengths in indices.
- Get foreign key information separately from the rest as they can have
colliding names.
2021-07-16 19:44:38 +01:00
Alexei Sorokin
d55488cdec
[OpenID][DATABASE] Store UNIX timestamps as BIGINT
2021-07-16 19:44:38 +01:00
Alexei Sorokin
573cd7d450
[SCHEMA] Fix a few mistakes
2021-07-16 19:44:38 +01:00
Alexei Sorokin
50dd216f44
[BLOCK] Increase type strictness
2021-07-16 19:44:38 +01:00
Alexei Sorokin
bee3dea9c2
[DATABASE] Add explicit indices for all foreign keys
...
This adds a requirement for all definitions that have foreign keys to also
require indices for all source (local) attributes mentioned in foreign keys.
MariaDB/MySQL creates indices for source attributes automatically, so this
serves as a way to get rid of those automatic indices and create clean explicit
ones instead.
In PostgreSQL, most of the time, indices on the source are necessary to
decrease performance penalty of foreign keys (like in MariaDB), but they aren't
created automatically, so this serves to remove that difference between
PostgreSQL and MariaDB.
2021-07-16 19:44:38 +01:00
Alexei Sorokin
665e4574da
[DATABASE] Fix index identifiers and clean up redundant ones
2021-07-16 19:44:38 +01:00
t3nma
f3ab63957d
[DirectMessage] Update ApiDirectMessageNew action
...
- Messages are now saved as Notices
2021-07-16 19:44:38 +01:00
t3nma
8ca412bd1d
[DirectMessage] Update ApiDirectMessage action
...
- getMessages() is now fetching from the Notice table as supposed
- every show{format}* method is properly updated to use Notice objects
- json and xml responses retrieve multi-recipients without compromising
backwards compatibility
2021-07-16 19:44:38 +01:00