Hugo Sales
26f01c4c92
[Posting] Fix posting form name and css
2021-09-14 13:06:49 +01:00
Hugo Sales
a98af6ab6a
[Directory] Add directory plugin, for listing people and groups
2021-09-14 13:06:48 +01:00
rainydaysavings
ff9b5d9c01
[PLUGIN] Removing unnecessary labels
2021-09-14 13:06:48 +01:00
rainydaysavings
6188524586
[PLUGIN] Recycle initial implementation
2021-09-14 13:06:47 +01:00
rainydaysavings
8a0418d8cf
[Favourite] Add backend support for favourite
2021-09-14 13:06:47 +01:00
Hugo Sales
f60bdaa2f0
[DB][MODULES][ActivityPub] Cleanup table definitions
2021-09-14 13:06:45 +01:00
Hugo Sales
b624359b9a
[ActivityPub] Initial cleanup, removing 'die' statements, and ignoring the subfolders
2021-09-14 13:06:39 +01:00
Hugo Sales
0230dd04df
[PLUGIN] Remove Test plugin
2021-09-14 13:05:50 +01:00
Hugo Sales
86b9f7d7a1
[COMPONENT][PLUGIN] Move Email and XMPP notification handlers from components to plugins, so they can be disabled
2021-09-14 13:05:50 +01:00
Hugo Sales
e5082657b7
[COMPONENT][PLUGIN] Small refactor and add license
2021-09-14 13:05:48 +01:00
Hugo Sales
995b4cfb9b
[PLUGIN] Update example plugin
2021-09-14 13:05:47 +01:00
Diogo Cordeiro
cb7518a750
[DOCUMENTATION][TOOL] Small bug fixes and docblock elaboration
2021-09-14 13:05:24 +01:00
Hugo Sales
0c79dfc67b
[MODULES] Rename extensions to modules, add example plugin, change plugin location
2021-09-14 13:04:37 +01:00
Hugo Sales
6df658a987
[CORE][EXTENSIONS] Added extension (modules, plugins) loading and test plugin, which is able to handle events
2021-09-14 13:01:34 +01:00
11154a0d8c
[V3] Big Crunch
...
And so, just as it begins, so too must it end
One should not dwell and stall, for more is to come
2021-09-14 13:01:23 +01:00
7d8988d50c
[VersionBump] 2.0.0beta0
...
Updated composer and translations
composer install --no-dev
composer dump-autoload --optimize
git add vendor/ --force
make updatepo
2021-07-18 12:51:07 +01:00
31433db539
[ActivityPub][POSTMAN] Do not die on network errors
2021-07-16 18:03:12 +01:00
bdb4c54fa8
[DirectMessage] Fix some wrong calls after MessageModel introduction in d9a9a3746b
2021-07-16 17:36:33 +01:00
55293e4008
[ActivityPub][INBOX] CREATE NOTE Attachments, we handle enclosures elsewhere
...
It was trying to make enclosures with objects instead of strings, also attachments don't use this, only links
2021-07-16 17:07:13 +01:00
bb2c845f62
[ActivityPub][INBOX] CREATE NOTE now accepts <br> tag
2021-07-16 15:48:02 +01:00
fbeadc1d49
[StoreRemoteMedia][SCRIPTS] Fix typo in query
...
This was introduced in 11ebb98919f56f7dcf888adfbebf9e8826f995b4#diff-96141878409d7418ea5a9eefbde509b43482c01R70
The arg number should have been one, as there's only one...
2021-07-16 15:46:25 +01:00
Alexei Sorokin
b6ce12a267
Update the project homepage and IRC channel
2021-06-12 11:30:12 +03:00
b4b71f7626
[StoreRemoteMedia] Fix failing to show remote thumbnails on first load
...
imgPath onCreateFileImageThumbnailSource would throw FileNotFoundException
2021-04-13 14:58:55 +01:00
f088a3d54f
[Embed] Apply encoding and increased type strictness patches from StoreRemoteMedia
2021-04-13 14:55:45 +01:00
5b23781e68
[StoreRemoteMedia] Gracefully recover from poorly encoded images
2021-04-13 14:54:56 +01:00
edc9fd203d
[StoreRemoteMedia] Increase type strictness
2021-04-13 14:54:56 +01:00
844ecbf71e
[Embed] Revert defaults and fix Readme example
2021-02-21 20:20:48 +00:00
8570ad2094
[StoreRemoteMedia][SCRIPTS] Move removeRemoteMedia deleteRemoteMedia
2021-02-21 16:03:47 +00:00
bc3eb7bccc
[MEDIA] Allow thumbnail only entries
2021-02-21 16:03:47 +00:00
800c0daafe
[StoreRemoteMedia][SCRIPTS] Update removeRemoteMedia
2021-02-21 16:03:47 +00:00
d47bb3736e
[Media] Document recently added settings and add some more
...
Fix some buggy ones, especially Embed crop
2021-02-21 16:03:46 +00:00
ec1719e61d
[StoreRemoteMedia][Embed] Bump plugins version
2021-02-21 16:03:46 +00:00
ef0f65720e
[StoreRemoteMedia] Remote images are now stored exactly on the necessary size for the thumb
2021-02-21 16:03:46 +00:00
22b5dd8567
[Media] Fix several issues
...
[StoreRemoteMedia] Upgrade plugin to use the new Media system
API Changes:
- Added getters to File to better formalize the ideas of the commit "[Media] Fix issues with database file storage"
UI Changes:
- Now presented thumbnails are actual thumbnails (bug fix)
- Attachment actions have a slightly more extended behaviour
Many other minor bug fixes...
2021-02-21 16:03:46 +00:00
f9290705f8
[ActivityPub] Attachment fetch should happen on StoreRemoteMedia
2021-02-21 16:03:46 +00:00
6028175bfc
[Media] Fix issues with database file storage
...
Fixed file quota as well.
There can be more than one file for the same filehash IF the url are different.
Possible states:
- A file with no url and with filename is a local file.
- A file with an url but no filename is a remote file that wasn't fetched,
not even the thumbnail.
- A file with an url and filename is a fetched remote file (maybe just a
thumbnail of it).
- A file with no filename nor url is a redirect.
Routes:
Given these states, updated routes so that an attachment can only be
retrieved by id and a file by filehash.
Major API changes:
File::getByHash now returns a yield of files
Major UI changes:
- Now remote non stored files are presented.
- /view became preferred
- Redirects to remote originals are preferred.
Many other minor bug fixes...
2021-02-21 16:03:46 +00:00
b1e6b00545
[ActivityPub] Re-implement Delete Actor
2021-02-21 15:00:58 +00:00
Alexei Sorokin
06dfd91a82
Various fixes
...
Fix OAuth and Realtime issues introduced in 9a515b9234
[DATABASE] Fix an empty default value mistake introduced in
fde929b151
[DATABASE][PostgreSQL] Avoid use of pg_constraint.consrc, which was removed in
PostgreSQL 12.
[DATABASE][MariaDB] Fix a typo introduced in aed2344bd4
[DAEMON] Wrap an assignment inside "switch":
a follow-up to adc689cb15
2020-10-11 18:29:47 +03:00
Alexei Sorokin
c540466147
[XMPP] Respond to ping and track time monotonically
...
This also fetches a necessary update from the XMPPHP upstream.
2020-09-27 00:16:08 +03:00
Alexei Sorokin
4d8b04cda9
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.
2020-09-21 22:25:33 +03:00
Alexei Sorokin
aed2344bd4
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.
2020-09-16 19:34:49 +03:00
Alexei Sorokin
52d67b0f44
Avoid ordering just by a timestamp
...
Try to also employ an id when possible.
Involves reworking some of the indices.
2020-09-15 16:59:27 +03:00
Alexei Sorokin
8079a476b6
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.
2020-09-15 14:59:27 +03:00
Alexei Sorokin
fde929b151
[DATABASE] Switch from PEAR DB to MDB2
2020-09-14 22:46:29 +03:00
Alexei Sorokin
96f1cc1a5c
[ActivityPub][INBOX][Delete] Stop if the ID is not present
2020-09-14 21:32:41 +03:00
Alexei Sorokin
647bf8c953
[ActivityPub] Fix use of ActivityPubPlugin::pull_remote_profile
...
It does not throw but return null.
2020-09-14 20:48:10 +03:00
Alexei Sorokin
d2c7d70f49
Fix "Implement a class for automatic temporary file handling"
...
TemporaryFile::commit throws instead of returning a bool.
2020-09-14 20:37:48 +03:00
Alexei Sorokin
adc689cb15
Avoid use of assignments bare inside statements
...
Either use them in a subroutine call or put parentheses around the assignment.
2020-09-08 12:42:51 +03:00
Alexei Sorokin
08145f635f
Implement a class for automatic temporary file handling
...
And adopt it all over the code.
2020-09-04 13:15:23 +03:00
Alexei Sorokin
55136c1c6f
[DirectMessage] Simplify the inbox query
2020-09-02 15:12:20 +03:00
Alexei Sorokin
fc300607e5
[ActivityPub] Check if a Notice is public via CC as well
2020-09-01 01:20:13 +03:00
Diogo Cordeiro
8c20ed0c89
[ActivityPub] Fix note URIs
2020-08-31 22:18:49 +01:00
Diogo Cordeiro
c8e9cbdbb8
[ActivityPub] Tombstones now have datetimes
2020-08-30 01:59:38 +01:00
Diogo Cordeiro
11a7182594
[ActivityPub] Implement Failed Queue
2020-08-29 20:32:21 +01:00
Diogo Cordeiro
817074a787
[ActivityPub] Fix DELETE
2020-08-29 20:32:18 +01:00
Diogo Cordeiro
c75bf1a19d
[ActivityPub] Fix issues concerning Activity URIs
...
And some other minor bugs.
2020-08-29 11:29:12 +01:00
Alexei Sorokin
11ebb98919
[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.
2020-08-27 11:15:39 +03:00
Diogo Cordeiro
e4093343c2
[ActivityPub] Revert moving Disfavor to Queues
...
It seems this kind of notice isn't queued?
2020-08-27 02:14:47 +01:00
Diogo Cordeiro
101ea554ef
[ActivityPub][Queues] Fix Like
2020-08-27 02:12:22 +01:00
Diogo Cordeiro
ef6a986dc6
[TheFreeNetwork] Do not allow lower priority protocols to handle remote actors already handled by the higher ones
2020-08-27 01:32:15 +01:00
Alexei Sorokin
db593496a7
[Directory] Fix SQL string quotation
2020-08-26 16:27:35 +03:00
Alexei Sorokin
00c492891e
[Foreign_link] Change the type of "credentials" to blob
...
TwitterOAuthClient::packToken uses \0 as a delimeter which can cause issues on
TEXT or VARCHAR.
2020-08-25 16:06:37 +03:00
Alexei Sorokin
0e81f9c726
[OpenID] Correct table definition types
...
"server_url" should not be blob.
Lengths are adjusted to Auth/OpenID/(PostgreSQL|MySQL)Store.php.
2020-08-24 16:27:44 +03:00
Alexei Sorokin
20e5a6d1f3
[TwitterBridge][DAEMONS] Fix database connection clean-up
2020-08-24 15:43:14 +03:00
Alexei Sorokin
afd18db381
[TwitterBridge] Create Foreign_user before Foreign_link
...
To keep foreign key constraints intact.
2020-08-13 23:59:40 +03:00
tenma
2f845e98e8
[FFmpeg] Add FFmpeg plugin
...
FFmpeg plugin serves as a better performant/quality alternative to
resize animated GIFs than the ImageMagick plugin.
2020-08-14 23:32:15 +01:00
tenma
8a2c1658a8
[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
2020-08-14 19:48:02 +01:00
Alexei Sorokin
b65c200922
[File] Fix file deletion violating foreign keys
2020-08-13 23:56:31 +03:00
Alexei Sorokin
33caf31237
[RedisCache] Connections should not be shared by daemon threads
2020-08-13 22:51:22 +03:00
Alexei Sorokin
cb7effca05
[Memcached] Do not set persistent connections for daemons
2020-08-13 22:51:22 +03:00
Alexei Sorokin
8745a3e824
[Embed] Fix a query typo in fixup_files.php
...
Regression introduced in ec86de2bc4
2020-08-13 22:51:22 +03:00
Alexei Sorokin
2109c7b830
[Bookmark] Silence a warning when no tags in BookmarkForm
2020-08-12 13:19:59 +03:00
Alexei Sorokin
629857d3ef
[Bookmark] Fix undefined variable "rendered" in Activity options
2020-08-12 13:12:36 +03:00
Alexei Sorokin
14e2621a05
[RSSCloud] Avoid the deprecated in PHP each() function
2020-08-11 19:40:46 +03:00
Alexei Sorokin
2abe910ff5
[RSSCloud] Update schema definition
2020-08-11 18:23:45 +03:00
Alexei Sorokin
535b87bb64
[RedisCache][DiskCache] Check if unserialize succeeded
2020-08-10 11:12:31 +03:00
Alexei Sorokin
e63c0d1b03
[TwitterBridge] Check if Notice::$lat and Notice::$lon are defined
2020-08-10 10:35:45 +03:00
Alexei Sorokin
07b0aa8f52
[DATABASE] Fix remaining misuses of SQL's GROUP BY
2020-08-10 19:29:04 +03:00
Alexei Sorokin
7cb10b71bb
[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.
2020-08-09 23:58:25 +03:00
Alexei Sorokin
042e4b070c
[EmailAuthentication] Check if e-mail with filter_var
2020-08-09 20:35:31 +03:00
Alexei Sorokin
b20c0bdec7
Clean Notice_prefs and Fave_tally when a notice is deleted
2020-08-08 12:22:35 +03:00
Alexei Sorokin
0a6bb5190f
[ExtendedProfile] Clean up of missing array indices handling
2020-08-07 11:59:17 +03:00
Alexei Sorokin
cf353f8829
[TwitterBridge] Do not fail on missing notice
2020-08-07 11:42:21 +03:00
t3nma
22d650469b
[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"
2020-08-06 17:25:27 +01:00
Diogo Cordeiro
849ad494d8
[ActivityPub][NOTICE] Process attachments
2020-08-05 18:23:41 +01:00
Diogo Cordeiro
1428ac2cb0
[ActivityPub][NOTICE] Fix variable being wrongly reused
2020-08-05 17:53:31 +01:00
Diogo Cordeiro
efdc7d9ba0
[ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone
2020-08-05 17:53:31 +01:00
Diogo Cordeiro
e4e41bb595
[ActivityPub][NOTICE] Fix other federation protocols mention handling
2020-08-04 20:00:55 +01:00
Diogo Cordeiro
379fbb6e5d
[ActivityPub][SCRIPTS] Add fix_subscriptions.php
2020-08-04 17:12:01 +01:00
Diogo Cordeiro
09c3236afc
[TheFreeNetwork][fix_duplicates.php] Don't die because you couldn't federate an undo follow
2020-08-04 13:03:33 +01:00
Alexei Sorokin
e206995268
Set HTTP status codes with http_response_code()
2020-08-04 14:12:17 +03:00
Diogo Cordeiro
a9c365a5eb
[VersionBump] 2.0.0alpha0
...
Ran composer update and locale updater
2020-08-04 05:31:44 +01:00
t3nma
1675916fda
[ActivityPub][QUEUES] Handle Create (AS1 POST) verb properly
...
Fixes a bug introduced in e504d13120
2020-08-03 18:21:47 +01:00
Alexei Sorokin
20be1d179a
[OpenID][DATABASE] Store UNIX timestamps as BIGINT
2020-07-31 18:40:53 +03:00
Alexei Sorokin
92e8c40c55
[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.
2020-07-31 16:36:40 +03:00
Alexei Sorokin
0bfa747382
[DATABASE] Fix index identifiers and clean up redundant ones
2020-07-31 16:12:48 +03:00
t3nma
be3c4263b3
[DirectMessage] Update ApiDirectMessageNew action
...
- Messages are now saved as Notices
2020-07-29 17:50:29 +01:00
t3nma
f00852a619
[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
2020-07-28 05:49:37 +01:00
t3nma
83df8848c8
[DirectMessage] Update inboxMessages() to stop fetching replies
...
This is yet to be supported in the plugin.
2020-07-28 05:48:43 +01:00
t3nma
99183ce4e2
[DirectMessage] PSR12-format
2020-07-28 04:46:10 +01:00