6e031d623a
[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:49:17 +01:00
Maiyannah Bishop
cd3a9ec6a9
[API] Security hotfix for source, picked from postActive
2021-07-17 20:24:27 +01:00
983478aeec
[PEAR] Force using extlib's patched version
2021-07-16 19:44:42 +01:00
56ece91f4c
[ActivityPub][POSTMAN] Do not die on network errors
2021-07-16 19:44:42 +01:00
5396f3c9d1
[DirectMessage] Fix some wrong calls after MessageModel introduction in d9a9a3746b
2021-07-16 19:44:42 +01:00
68dfaff413
[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 19:44:42 +01:00
1b69d02875
[MEDIA][MediaFile] Prevent issues with huge original filenames
2021-07-16 19:44:42 +01:00
4cc3a779b5
[ActivityPub][INBOX] CREATE NOTE now accepts <br> tag
2021-07-16 19:44:42 +01:00
28a044077f
[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 19:44:42 +01:00
Alexei Sorokin
c5e433d577
Update the project homepage and IRC channel
2021-07-16 19:44:42 +01:00
76a1facd55
[INSTALL] Update mailing list URL, as recommended by @Gijs
...
Closes notabug issue #327
2021-07-16 19:44:42 +01:00
761ce7fd81
[StoreRemoteMedia] Fix failing to show remote thumbnails on first load
...
imgPath onCreateFileImageThumbnailSource would throw FileNotFoundException
2021-07-16 19:44:42 +01:00
0eb96d4805
[Embed] Apply encoding and increased type strictness patches from StoreRemoteMedia
2021-07-16 19:44:42 +01:00
5582ccfcb7
[StoreRemoteMedia] Gracefully recover from poorly encoded images
2021-07-16 19:44:42 +01:00
b96a44c73f
[StoreRemoteMedia] Increase type strictness
2021-07-16 19:44:42 +01:00
a500277dca
[Embed] Revert defaults and fix Readme example
2021-07-16 19:44:42 +01:00
bcae2f26b5
[StoreRemoteMedia][SCRIPTS] Move removeRemoteMedia deleteRemoteMedia
2021-07-16 19:44:42 +01:00
422b82d3be
[MEDIA] Allow thumbnail only entries
2021-07-16 19:44:42 +01:00
4deaaa8dbe
[StoreRemoteMedia][SCRIPTS] Update removeRemoteMedia
2021-07-16 19:44:42 +01:00
890f3bd91e
[SCRIPTS] Update clean_file_table
2021-07-16 19:44:42 +01:00
f8e6ad416b
[MEDIA][SCRIPTS] clean_thumbnails Allow to delete remote thumbs as well
...
If the sysadmin decides that StoreRemoteMedia plugin should store
original, then its thumbs will be regenerated as well, making it safe to
delete them if needed. Beware that Embed plugin never stores the original tho.
2021-07-16 19:44:42 +01:00
ee872b5e44
[Media] Document recently added settings and add some more
...
Fix some buggy ones, especially Embed crop
2021-07-16 19:44:42 +01:00
5e3fa2bba1
[StoreRemoteMedia][Embed] Bump plugins version
2021-07-16 19:44:42 +01:00
4fec13eb20
[Media] Upload of previously uploaded files now works (bug fix)
...
This bug was introduced with the commit "[Media] Fix issues with database file storage"
due to the API change "File::getByHash now returns a yield of files".
I had updated this function on that commit but had missed this little detail.
2021-07-16 19:44:42 +01:00
cab2112f1c
[StoreRemoteMedia] Remote images are now stored exactly on the necessary size for the thumb
2021-07-16 19:44:42 +01:00
5077b65d71
[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-07-16 19:44:42 +01:00
c2d2f90312
[ActivityPub] Attachment fetch should happen on StoreRemoteMedia
2021-07-16 19:44:42 +01:00
96197d16b5
[Core] Add an event for StoreRemoteMedia and Embed
2021-07-16 19:44:42 +01:00
8bbbb890e3
[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-07-16 19:44:42 +01:00
11fa4b617a
[DOCUMENTATION] git clone with https so people don't need an account
2021-07-16 19:44:42 +01:00
eacbd81dfa
[i18n] Re-add gettext emulation
...
Removed by mistake with 9cc7df51d6#L50
2021-07-16 19:44:42 +01:00
8d84451200
[ActivityPub] Re-implement Delete Actor
2021-07-16 19:44:42 +01:00
Andrew Tokarskiy
c7cee7fe1a
Added some ukr translations
2021-07-16 19:44:41 +01:00
Andrew Tokarskiy
058614866b
Fixed some ukrainian translation errors
2021-07-16 19:44:41 +01:00
Alexei Sorokin
ebfc248ff6
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
2021-07-16 19:44:41 +01:00
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
SENOO, Ken
0b4a49d262
Change required MySQL database character set variable
...
Changing `character_set_server` requires root permissions and rebooting
the server.
Which is impossible on shared web hosting services.
So use `character_set_database`. This variable can be changed with
user permissions using `ALTER DATABASE`.
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
22f6d3ce14
[UTIL] Sanitise instead of validate in common_copy_args()
...
And remove common_validate_utf8() which is now unused.
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
d7e7396d17
[Memcached_DataObject] Do not encache on insert
...
This resulted in N=0 and empty "modified" in cache.
2021-07-16 19:44:41 +01:00
Alexei Sorokin
7e1091eb8c
[DATABASE] Make sure the session always uses UTF-8 and UTC
2021-07-16 19:44:41 +01:00
Alexei Sorokin
4e02cb437a
[API] Fix /api/statuses/update reporting a failure
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
7c2cf605f4
[Profile] Extend the allowed length of nicknames to 191 characters
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
590891139f
[Memcached_DataObject] Change how multiGet achieves an ordered result
...
The previous approach sent the key values twice, which for large sets is
twice as bad.
As an optional feature of this approach multiGet now allows retrieving tuples
in exact order and amount of the requested key values.
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
cb78573f59
[TheFreeNetwork] Fix invalid index on lookup
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
3b514abd6b
[Queue_item] Let DataObject construct WHERE IN
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
681aa5b326
[NOTICES] Condition pushdown in the subquery in inboxnoticestream
...
This improves performance on PostgreSQL.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
47c9bea46f
[DATABASE][PostgreSQL] Ignore index prefix length
2021-07-16 19:44:40 +01:00
Alexei Sorokin
2d8f320586
[PostgreSQL] Set timezone to UTC
...
And remove some redundant neighbouring cruft:
utf8mb4 is already set in mysqlschema more than enough times.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
1f3edd8fdf
Rename the mysql_foreign_keys option to foreign_keys
...
And apply it universally.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
ed68659ece
[SESSION] Session ID can be as long as 128 characters
2021-07-16 19:44:40 +01:00
Alexei Sorokin
ddc3371b43
[NOTICE] Store "url" as TEXT and not VARCHAR(191)
2021-07-16 19:44:40 +01:00
Alexei Sorokin
3075cffcd7
[DATABASE] Change collation handling
...
Before now table definitions could define collations only for MariaDB using the
MariaDB's collation names directly.
Now instead definitions get a slightly more abstract collation name syntax, but
only supporting the collations utf8mb4_bin and utf8mb4_unicode_(cs|ci) (wrapped
as utf8_bin, utf8_general_(cs|ci)), because those are the ones that have
practical use for GNU social.
Which also means that on MariaDB the formerly used utf8mb4_general_(cs|ci) have
been superseded by utf8mb4_unicode_(cs|ci), as they are the more modern
replacement.
Introduce collation support on PostgreSQL which results in use of the C (POSIX)
collation as utf8_bin and the und-x-icu collation as utf8_general_cs.
utf8_general_ci is also mapped to und-x-icu, which makes it case-sensitive,
unfortunately.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
86826a1a68
[SEARCH][PostgreSQL] Make LIKE search case-insensitive
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
Alexei Sorokin
c11629035b
[SEARCH][MariaDB] Change user-facing fulltext search syntax
...
Now analogous to the simple and safe PostgreSQL's websearch_to_tsquery syntax.
MariaDB's full-text boolean search queries will fail on input such as "@user"
(unquoted) which is particularly noticeable to the user.
2021-07-16 19:44:40 +01:00
Alexei Sorokin
2d6e4e3912
[SEARCH] Exclude message scope
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
4a50579ef1
[MEDIA] Add WebP support
...
WebP format is now the default image format for anything that
is not an animated GIF. Image Intervention doesn't support
animated WebPs so we don't convert animated GIFs.
ImageFile:
MediaFile:
default:
- Add WebP support
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
668bdc7a6d
[Memcached_DataObject] Thorough check of pivotGetClass arguments
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
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
t3nma
8b0abc0382
[DirectMessage] Update inboxMessages() to stop fetching replies
...
This is yet to be supported in the plugin.
2021-07-16 19:44:38 +01:00
t3nma
58d7ab4d13
[DirectMessage] PSR12-format
2021-07-16 19:44:38 +01:00
Alexei Sorokin
903a9d2667
[DOCUMENTATION] Adopt PSR-12 and clarify on arrays
2021-07-16 19:44:37 +01:00
Alexei Sorokin
b1b1d2af93
[DATABASE] Update "modified" in Managed_DataObject instead of a DBMS trigger
...
Instead of relying on the MariaDB's ON UPDATE CURRENT_TIMESTAMP trigger update
"modified" attributes in Managed_DataObject. Every raw query that needs
adjusting is adjusted, as they won't update "modified" automatically anymore.
The main goal behind this change is to fix "modified" updates on PostgreSQL.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
346aec9b2a
[DATABASE] Fix more incorrect uses of quotation in SQL
2021-07-16 19:44:37 +01:00
Alexei Sorokin
5b6a64b125
[Notice] Fix clearReplies() and clearRepeats()
2021-07-16 19:44:37 +01:00
Alexei Sorokin
7c727e2969
[SHOWSTREAM] Add "noindex" robots meta-tag for silenced profiles
2021-07-16 19:44:37 +01:00
Alexei Sorokin
7d7dbe627b
[AuthCrypt] Password storage and comparison improvements
...
Password hashes are now stored in a TEXT attribute, not limited to 199 symbols.
That limitation makes no sense as password hashes are not the kind of
information to be indexed.
Actually replace crypt() with password_verify() for password checking, current
code left password_verify() unused.
Only update passwords when they use a different algorithm from the current
default. Previously "overwrite" meant rehashing every login.
Replace the "argon" boolean option with "algorithm" and "algorithm_options" for
better configurability.
The default remains whichever is default for PHP's password_hash.
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
c85feeaa1f
[AuthCrypt] Update README and fix formatting
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
360fc0262b
[MODULES] Make settings great again
...
Plugin main class doesn't use this construct despite extending this class.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
2d3ec87ea4
[Profile][User_group] Fix profile deletion violating foreign keys
2021-07-16 19:44:37 +01:00
Alexei Sorokin
a719684c6c
[Favorite] Properly trigger DisfavorNotice on profile deletion
2021-07-16 19:44:37 +01:00
Alexei Sorokin
182f94cf6f
[DATABASE][MariaDB] Fix index changes with foreign keys enabled
2021-07-16 19:44:37 +01:00
Alexei Sorokin
9ec1b667c0
[DATABASE][Schema_version] Change the hashing algorithm to SHA3-512
2021-07-16 19:44:37 +01:00
Alexei Sorokin
65b6a924bd
[DATABASE] Make unprefixed schema.php a bit more DBMS-neutral
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
452f05512f
[ActivityPub][Explorer] More robust exception handler for invalid remote answers
2021-07-16 19:44:37 +01:00
Alexei Sorokin
b79d97c4e1
[RemoteFollow] Fix location display
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
2894eb9ed2
[MEDIA] Fix headers when using x-static-delivery
2021-07-16 19:44:37 +01:00
Alexei Sorokin
8b5be9fe1b
[LRDD] Fix unhandled bad data in HostMeta, LinkHTML and WebFinger
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
7022d85b93
[ActivityPub][AProfile] Complete strict typing
2021-07-16 19:44:37 +01:00
Alexei Sorokin
e902a9bdfc
[DATABASE] Check SQL boolean values with "IS TRUE"
...
This way UNKNOWN (NULL) explicitly turns to FALSE when three-valued logic is
reduced to binary.
In pgsqlschema, however, use "IS FALSE" as boolean attributes in pg_index are
non-nullable, there is no outer join and there's no clear preference for NULL
reduction.
Over-complicated constructions in TagCloud queries have been simplified, which
should not affect their performance.
Additionally, in TagCloud's lib/subscriptionspeopleselftagcloudsection.php
a typing mistake in an equi-join of "profile_tag" and "profile_list" on
"tagger" was fixed.
That regression was introduced in f446db8e2a
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
a996ac797a
[UserFlag] Fix type of onUserRightsCheck
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
e046d4faa5
[UserFlag] Increase strict typing of main file
...
Run php-cs-fixer
Correct case of class name onDeleteRelated event handlers
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
235122280d
[ActivityPub] Increase type strictness on Explorer
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
05790c124c
[ActivityPub] Fix wrong type handling on AProfile:update_profile
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
f1b3db8e59
[Bookmark] Fix misuse of XMLOutputter
...
Argument 3 passed to htmloutputter::input() must be of the type string or null, array given, called in /srv/gnusocial/plugins/Bookmark/forms/bookmark.php on line 166
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
80a4811539
[ExtendedProfile] Fix misuse of XMLOutputter
...
Argument 1 passed to xmloutputter::text() must be of the type string, null given, called in /srv/gnusocial/plugins/ExtendedProfile/lib/extendedprofilewidget.php on line 556
2021-07-16 19:44:37 +01:00
Hugo Sales
58af4799ee
[NOTICE][UI] Fix bug: Option to message "Everyone at site" when using private instance
2021-07-16 19:44:37 +01:00
Alexei Sorokin
af0ec1380e
[DOCUMENTATION] Adapt the nginx config for avatars located in /file
2021-07-16 19:44:37 +01:00
Alexei Sorokin
9ba9006014
[CORE] Avoid materialisation in the TaggedProfileNoticeStream query
...
This is analogous to c862589dcf
2021-07-16 19:44:37 +01:00
Alexei Sorokin
e3f1667b47
[NOTICE] Update index for verbs in ProfileNoticeStream
...
After adding a verb condition there, MariaDB now prefers the
("created", "id", "is_local") and ("profile_id", "verb", "created", "id")
indices for that query, even though they are slow for the job.
So replace them with ("is_local", "created", "id") and
("profile_id", "verb", "created", "id") respectively.
Also fix the naming of the ("profile_id", "created", "id") index.
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
b5180d6096
[ActivityPub] Fix bug introduced with 4d171b27
...
Too few arguments to function Activitypub_notice::create_notice()
2021-07-16 19:44:37 +01:00
Alexei Sorokin
c461030066
[RedisCache] Catch string return type from Predis\Client::setex
2021-07-16 19:44:37 +01:00
Alexei Sorokin
c50f16ba58
[CORE] Do not set "confirm_address"."user_id" to 0 by default
...
That breaks the foreign key constraint, it is better to just have it nullable.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
cbb83a9752
[NOTICES] Revert "We want the profile stream to be as raw as possible!"
...
There are only three possible visible notice verbs: POST, SHARE and DELETE.
What including all verbs does is it makes limiting (FETCH FIRST) unreliable as
the query will fetch invisible stuff (like favourites) and count it in, but
nothing will be displayed.
NoticeStream only allows POST and SHARE, so this effectively removes tombstones
from the profile page like in 78a111b57d
2021-07-16 19:44:37 +01:00
Alexei Sorokin
eb647f15a7
[NOTICES] Fix InboxNoticeStream caching
...
Introduce a new property in CachingNoticeStream for always checking if there
are any new elements in the stream.
It would be extremely hard to blow InboxNoticeStream, so instead the database
hit will still occur, but it is be much faster than starting fresh.
This fixes a regression introduced in 36a55d8436
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
8ec2af0020
[TheFreeNetwork] Fix small logic issue regarding StartTFNLookup return
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
d81e795cc0
[ActivityPub][SCRIPTS] Make update profiles work with an uri
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
4bbfb2dd56
[ActivityPub][QUEUES] Add Like, Undo and Delete
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
2b4aaca14a
[ActivityPub][INBOX][Delete] Fix misconceptions
...
References:
- https://socialhub.activitypub.rocks/t/the-delete-activity-and-its-misconceptions/137
- https://socialhub.activitypub.rocks/t/the-update-activity-more-than-caching/260
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
64108aa51d
[ActivityPub][NOTE] Do not extract actor from attributedTo
...
There was no checking of attributedTo, actors and referent object IDs to make
sure they exist in the same domain. Therefore, one could spoof messages from
people by doing attributedTo: whoever-i-want-to-spoof
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
9f4c4edb02
[ActivityPub][Ostatus] Fetch avatars in accordance to the new media system
2021-07-16 19:44:37 +01:00
Alexei Sorokin
e9d1c5593d
[CORE] Avoid materialisation in the TagNoticeStream query
...
The notice.created sort forced the notice_tag by notice join plain to employ
materialisation, which can have a serious performance penalty depending on the
size of the database.
Sort by notice_tag.created instead, which should be exactly the same.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
d3e63bbac0
[CORE] Avoid the old "reply" relation in inboxnoticestream
...
All verbs for not visible notices are filtered out, so this should not
break the timeline.
Additionally, filter by profile outside of the derived relation as that shows
better performance in PostgreSQL and MariaDB both.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
819ece93aa
Revert "FullNoticeStream selects all verbs"
...
It appears this was added to display "tombstones" of deleted notices.
However, it has other side-effects and the concept of keeping them visible has
not been adopted by the wider fediverse.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
26115482ef
[SCHEMA] Improve timestamp storage
...
Avoid the use of deprecated MariaDB "zero dates" globally. If they're present
as attribute defaults somewhere, they will be replaced with NULL implicitly.
The existing "zero dates" in MariaDB storage will be left intact and this
should not present any issues.
The "timestamp" type in table definitions now corresponds to DATETIME in
MariaDB with "DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", which
should be close enough to the original behaviour for compatibility purposes.
It is now the recommended type for "modified" attributes, because of the
update trigger on MariaDB. But there is no such trigger implemented on
PostgreSQL as of this moment.
2021-07-16 19:44:37 +01:00
Alexei Sorokin
eb993df072
[DATABASE] Fix MariaDB schema verification
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
32a7cd6458
[ActivityPub][HTTPSignatures] Fix verify
2021-07-16 19:44:37 +01:00
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
tenma
d369e807fb
[DATABASE] Fix deprecated call to implode()
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
4a90f281ed
[ActivityPub] Fix undefined tag index 'type' in Activitypub_notice
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
0204ffb1fa
[NOTICES] Add data-nosnippet attribute for notices by remote profiles
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
570fc17e8a
[SHOWSTREAM] Add robots meta-tag for remote profiles
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
684a1a4143
[FORMAT] Ran php-cs-fixer on the handlers of notice items and streams
...
This was to keep the following two commits readable
- actions/showstream.php
- actions/userbyid.php
- lib/modules/ActivityHandlerModule.php
- lib/modules/ActivityHandlerPlugin.php
- lib/notices/conversationnoticestream.php
- lib/notices/noticelistitem.php
- lib/notices/noticestream.php
- lib/notices/threadednoticelistitem.php
2021-07-16 19:44:36 +01:00
Alexei Sorokin
3951ccbef7
[CORE] Use monotonic time via hrtime() where applicable
...
The realtime clock is not reliable when calculating elapsed time.
2021-07-16 19:44:36 +01:00
Alexei Sorokin
d467370efb
[Embed][CORE] Validate the hexadecimal for hex2bin properly
2021-07-16 19:44:36 +01:00
Alexei Sorokin
ceeb6d4d8f
[PEAR DB_DataObject] Make static methods in Cast actually static
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
73a514ddcc
[DOCUMENTATION] Updated TODO and branches info
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
91869c78ac
[CORE] Better queues defaults
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
351e356bb4
[ActivityPub][Postman] Fix not sending notices to self
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
705b679332
[Ostatus] Partially revert 69add504e6
...
updateuris isn't needed after alll, we should solve this with TFNM and existing infrastructure.
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
e7778bd5d7
[ActivityPub][RSA] Revision, increase type scrictness and improve docs
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
73af7be061
[ActivityPub] Properly handle Actor URIs by using events correctly
...
This should fix nulls on explorer lookups inputed by postman after generate_followers/getSubscribers, that I think were caused by calling common_profile_uri that, curiously, only handles local profiles
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
165edc2609
[CORE] Add GNUSOCIAL_ENGINE_REPO_URL and increase usage of GNUSOCIAL_ENGINE_URL
2021-07-16 19:44:36 +01:00
Alexei Sorokin
7bd316b506
[API] Show a nicer no such user error on statusnet/groups/list_all
2021-07-16 19:44:36 +01:00
Alexei Sorokin
f24d122ef5
[SCRIPTS] Fix resend_confirm_address.php
...
Fix a regression from 6ec72b2978
,
check if an address is set when using --email.
2021-07-16 19:44:36 +01:00
Alexei Sorokin
ef056779fc
[Xmpp] Adjust type declarations for changes in XMPPHP
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
63669d3447
[COMPOSER] update
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
c96dafa191
[ActivityPub][RSA] Fix types of generate_keys
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
3d805026a2
[ExtendedProfile] Fix updates and allow to delete values
2021-07-16 19:44:36 +01:00
Alexei Sorokin
53af27a303
[NodeInfo][DATABASE] Adjust indices of the "notice" and "user" tables
...
On big databases these queries from the Nodeinfo plugin choked up:
SELECT profile_id FROM notice
WHERE notice.created >= (CURRENT_DATE - INTERVAL '180' DAY)
AND notice.is_local = 1;
SELECT id FROM "user"
WHERE "user".created >= (CURRENT_DATE - INTERVAL '180' DAY);
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
fbc6fe0818
[UI] Fix a small typo
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
3b01aa31d3
[REALTIME] Reviewed both the superclass and its dist plugins
2021-07-16 19:44:36 +01:00
Alexei Sorokin
aab3584f93
[DATABASE] Remove profile_tag_tag_fkey
...
profile_list.tag is not supposed to be unique,
this also reverts the addition of profile_list_tag_key.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
0bbcb5b098
[Xmpp] Latin-1 space characters are not forbidden for XMPP resources
...
Also use mb_strlen() with the 8bit encoding to count octets, strlen() is not as
reliable (mbstring.func_overload).
2021-07-16 19:44:35 +01:00
Alexei Sorokin
05f4b1e97d
[Xmpp] Use UnexpectedValueException in splitJid, a bit narrower
2021-07-16 19:44:35 +01:00
Alexei Sorokin
eab5725698
[DATABASE] Disable 'NULL' strings evaluation as SQL NULLs
...
Use $object->sqlValue('NULL') (identical to DataObject_Cast'ing) instead and
fix related issues like (email|sms)settings considering these NULLs as a
false positive for the E-Mail address still being set when it's been removed.
There could also be security implications to the now-disabled approach of
considering 'NULL' strings as SQL NULLs.
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
fd68965255
[ActivityPub] New URI system
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
4dbc8d1233
[PEAR DB_DataObject] Removed DB_DATAOBJECT_NO_OVERLOAD as we don't have support for either PHP 4 or 5
2021-07-16 19:44:35 +01:00
tenma
b19da881c7
[TheFreeNetwork] First code: Module class and census event
2021-07-16 19:44:35 +01:00
tenma
128c2c2e15
[SCRIPTS] Add updateuris script
...
To fix user URIs to their non-fancy version
2021-07-16 19:44:35 +01:00
tenma
c861eb7232
[CORE] Update common_user_uri
...
To be consistent between federated-protocols and maintain non-fancy URIs
2021-07-16 19:44:35 +01:00
tenma
3fb78ab108
[OStatus] Add script for profile deduplication and URI fixing
2021-07-16 19:44:35 +01:00
tenma
6a37c21ead
[ActivityPub] Fix some small known problems
...
ActivityPubPlugin:
- Rework onProfileDeleteRelated to account for the tables _rsa and _pending_follow_requests
- Update onEndShowAccountProfileBlock to stop creating the ap_profile if it doesn't exist (we'll handle this in a different manner)
Activitypub_profile:
- Remove unnecessary code from from_profile method and add return type information
Explorer:
- Update travel_collection to call itself instead of _lookup, that was wrong
2021-07-16 19:44:35 +01:00
Alexei Sorokin
b3c2dfd9c9
[AnonymousFave][DATABASE] Set the created timestamp on INSERT
2021-07-16 19:44:35 +01:00
Alexei Sorokin
0c1e9bbc17
[DAEMONS][TwitterBridge] Set PUBLICDIR
2021-07-16 19:44:35 +01:00
Alexei Sorokin
ab020c7528
[COMPOSER] Remove some pre-composer remnants from the code
2021-07-16 19:44:35 +01:00
Alexei Sorokin
c1bd59e243
[DOCUMENTATION][NGINX conf] snippets/fastcgi-php.conf is Debian-specific
2021-07-16 19:44:35 +01:00
Alexei Sorokin
01696246eb
[Embed][CORE] hex2bin should always get an even amount of symbols
2021-07-16 19:44:35 +01:00
tenma
234ba7705f
[ActivityPub] Fix successive "Cannot use object of type stdClass as array" errors in the postman
2021-07-16 19:44:35 +01:00
tenma
06d7e5bf06
[MODULES] Fix VERSION constant to MODULE_VERSION in various modules
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
d69f479cba
[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.
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
3dcedfa8bd
[MEDIA] Simplify Attachment actions
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
4a78510e37
[FILE] Fix Return value of File::getFileOrThumbnailSize() must be of the type int, null returned
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
81711a18d9
[LIB_REFACTOR] Fix minor issues
2021-07-16 19:44:35 +01:00
tenma
4901126519
[ActivityPub] Revert usage of bitwise-operator & in the inbox_handler class.
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
9088e58a64
[ActivityPub] The protocol allows content to be null, GNU social doesn't, we'll reject silentiously
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
4133874e59
[ActivityPub] attributedTo itself is not required, if not present then it should be inferred from the actor
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
b7ce5b91a4
[ActivityPub] Fix security issue concerning remote profile deletes
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
48eee0e018
[ActivityPub] Inbox Handler: Remove old guzzle import
...
Improve exception information in doc blocks
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
174733edc8
[ActivityPub] Slightly increase robustness on exception handling
...
Also ported Activitypub_rsa to PHP7
Minor indentation fixes
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
c93049d0da
[ActivityPub] Consistent headers in explorer requests
...
Minor indentation fixes
2021-07-16 19:44:35 +01:00
Miguel Dantas
9692150c23
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
2021-07-16 19:44:35 +01:00
Miguel Dantas
e25803b537
[Embed][CORE] Fixes 'Invalid Filename' on Embed. Regex didn't get updated
2021-07-16 19:44:35 +01:00
Alexei Sorokin
0fac7e49e2
Fix minor git merge resolving issues
2021-07-16 19:44:35 +01:00
Alexei Sorokin
1ba3416cd1
[SCRIPTS] Set PUBLICDIR in plugin scripts as well
2021-07-16 19:44:35 +01:00
Alexei Sorokin
3460c13535
[DAEMONS] Move resetDb to the Daemon class
...
As it is used inside the Daemon class now, it should always be available.
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
344db5dcdf
[ActivityPub] Add missing parenthesis in class instantiation
...
Fixed some issues related to thrown exceptions in the doblocks; also boolean -> bool
2021-07-16 19:44:35 +01:00
Alexei Sorokin
5f87c14bf8
[ActivityPub] Fix an unhandled error in onStartGetProfileFromURI
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
d0e3f9c823
[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.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
ffef85414e
[CORE] Fix logging of very early failures
2021-07-16 19:44:35 +01:00
Alexei Sorokin
cfc93bacbb
[DATABASE][MariaDB] Properly account for foreign keys
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
acd64ba54a
[BugFix] Plugins ExtendedProfile and OverwriteThemeBackground - admin is identical to system path names.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
8e9db78258
[OStatus] The unsubscribe state also needs a label
2021-07-16 19:44:35 +01:00
Alexei Sorokin
a9443d754a
[INSTALL] Fix lib/util/installer.php import path
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
ee405df000
[MODULES] Make disable in admin panel effective
2021-07-16 19:44:35 +01:00
Alexei Sorokin
16b5ddd230
[DATABASE] Re-introduce PostgreSQL support
2021-07-16 19:44:35 +01:00
Alexei Sorokin
e807e3bf08
[DATABASE] Use "<>" as an SQL non-equality sign
...
"!=" is not SQL compliant.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
37e5983aca
[DATABASE] Columns not in GROUP BY must not be queried
2021-07-16 19:44:35 +01:00
Alexei Sorokin
0e0c375e65
[DATABASE] Re-introduce the enum type abstraction
2021-07-16 19:44:35 +01:00
Alexei Sorokin
6b4344968d
[DATABASE] Set all primary keys as "not null" explicitly
2021-07-16 19:44:35 +01:00
Alexei Sorokin
2b0251213f
[DATABASE] Various table schema related fixes
2021-07-16 19:44:35 +01:00
Alexei Sorokin
bc97f34f5a
[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.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
3f17a0efea
[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.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
9d87c37ac1
[DATABASE] Consistently use the "LIMIT $limit OFFSET $offset" syntax
...
The "LIMIT $offset, $limit" syntax is only supported by MySQL and MariaDB.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
60ada8ae65
[DATABASE] Use time intervals in a SQL standard compliant way
2021-07-16 19:44:35 +01:00
Alexei Sorokin
6095a6de64
[DATABASE] Only use single quotation marks for SQL strings
...
Double quotation marks are only used for identifiers in the SQL standard.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
6fae840ee7
[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.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
d26aac77b3
[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.
2021-07-16 19:44:35 +01:00
Alexei Sorokin
1b41a38719
[CORE] Another inboxnoticestream improvement
2021-07-16 19:44:35 +01:00
Alexei Sorokin
1b66209e53
[DAEMONS] Switch daemons to double-forking for daemonisation
2021-07-16 19:44:35 +01:00
Alexei Sorokin
72f5576795
[DAEMONS] Properly disconnect daemons from the database
2021-07-16 19:44:35 +01:00
Miguel Dantas
cb412d228c
[OpportunisticQM] Revamped plugin to be able to use other poll based queuemanagers, no just the DB
2021-07-16 19:44:35 +01:00
Miguel Dantas
b0e10f01cb
[StompQueue] Changed StompQueueManager to use polling rather than sockets
2021-07-16 19:44:34 +01:00
Miguel Dantas
7cdd64f594
[PLUGINS] Added UnQueue, a new default plugin which does all actions immediately
2021-07-16 19:44:34 +01:00
Miguel Dantas
333b915740
[PLUGINS] Added DBQueue plugin
2021-07-16 19:44:34 +01:00
Miguel Dantas
e3c34c4693
[PLUGINS] Added StompQueue plugin, based on the implementation in lib/queue/stompqueuemanager. Updated to new STOMP library version. Dropped liberalstomp.php and stompqueuemanager.php
2021-07-16 19:44:34 +01:00
Miguel Dantas
3fbf974dad
[PLUGINS] Added RedisQueue
2021-07-16 19:44:34 +01:00
Miguel Dantas
44e96deecd
[CORE][AUTOLOAD] Fix class OAuthRequest not found
...
Issue description as reported by aab:
2019-08-28 17:34:48 LOG_ERR: [khp.ignorelist.com:61055.f5f7f51c GET /api/statuses/show/178372.atom] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:39:50 LOG_ERR: [khp.ignorelist.com:65390.4483ff85 GET /api/statusnet/conversation/104672.rss] Handled serverError (500) but cannot output into desired format ('rss'): 'Class \'OAuthRequest\' not found'
2019-08-28 17:39:50 LOG_ERR: [khp.ignorelist.com:65390.4483ff85 GET /api/statusnet/conversation/104672.rss] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:40:49 LOG_ERR: [khp.ignorelist.com:65390.4c745f68 GET /api/statuses/show/18132.atom] Handled serverError (500) but cannot output into desired format ('atom'): 'Class \'OAuthRequest\' not found'
2019-08-28 17:40:49 LOG_ERR: [khp.ignorelist.com:65390.4c745f68 GET /api/statuses/show/18132.atom] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:47:41 LOG_ERR: [khp.ignorelist.com:65390.42ee9fd4 GET /api/statusnet/conversation/133023.as] Handled serverError (500) but cannot output into desired format ('as'): 'Class \'OAuthRequest\' not found'
2021-07-16 19:44:34 +01:00
Miguel Dantas
55f4ed036d
[FRAMEWORK][AUTOLOAD] Fix autoloads
2021-07-16 19:44:34 +01:00
Miguel Dantas
ab3e8ce21d
[LIB_REFACTOR] Fix requires
2021-07-16 19:44:34 +01:00
Miguel Dantas
2ab2e22a36
[LIB_REFACTOR] Moving files into separate semantic categories
2021-07-16 19:44:34 +01:00
Miguel Dantas
5e16606358
[RedisCache] Fix call to getPayload on int. The library is badly documented, but seems to return the TTL instead of the normal redis response
...
Issue description as reported by aab:
About one day after enabling redis plugin:
PHP Fatal error: Uncaught Error: Call to a member function getPayload() on int in /var/www/html/plugins/RedisCache/RedisCachePlugin.php:96
Stack trace:
0 /var/www/html/lib/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:gatea...', Object(Queue_item), NULL, 86400, false)
1 /var/www/html/lib/cache.php(202): Event::handle('StartCacheSet', Array)
2 /var/www/html/classes/Memcached_DataObject.php(496): Cache->set('gnusocial:gatea...', Object(Queue_item))
3 /var/www/html/classes/Memcached_DataObject.php(416): Memcached_DataObject->encache()
4 /var/www/html/classes/Managed_DataObject.php(620): Memcached_DataObject->update(Object(Queue_item))
5 /var/www/html/classes/Queue_item.php(74): Managed_DataObject->update(Object(Queue_item))
6 /var/www/html/lib/dbqueuemanager.php(75): Queue_item::top(Array, Array)
7 /var/www/html/lib/iomaster.php(287): DBQueueManager->poll()
8 /var/www/html/lib/iomaster.php(161): IoMaster->poll()
9 /var/www/html/scripts/queuedaemon.php(112): IoMaster->service()
10 /var/www/html/lib/spawni in /var/www/html/plugins/RedisCache/RedisCachePlugin.php on line 96
2021-07-16 19:44:34 +01:00
Miguel Dantas
ba593bfa39
[Memcached] Fix call to undefined method close
...
Issue description as reported by aab:
Memcached config in config.php:
addPlugin('Memcached', [ 'servers' => ['127.0.0.1', 11211],
'defaultExpiry' => 86400 // 24h
]);
Memcached and php-memchached installed.
The error appears when executing startdaemons.
Log:
PHP Fatal error: Uncaught Error: Call to undefined method Memcached::close() in /var/www/html/plugins/Memcached/MemcachedPlugin.php:202
Stack trace:
#0 /var/www/html/lib/event.php(89): MemcachedPlugin->onStartCacheReconnect(false)
#1 /var/www/html/lib/cache.php(273): Event::handle('StartCacheRecon...', Array)
#2 /var/www/html/lib/spawningdaemon.php(209): Cache->reconnect()
#3 /var/www/html/lib/spawningdaemon.php(188): SpawningDaemon->resetDb()
#4 /var/www/html/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(3)
#5 /var/www/html/lib/daemon.php(168): SpawningDaemon->run()
#6 /var/www/html/scripts/queuedaemon.php(186): Daemon->runOnce()
#7 {main}
thrown in /var/www/html/plugins/Memcached/MemcachedPlugin.php on line 202
2021-07-16 19:44:34 +01:00
Miguel Dantas
a99ae06573
[Embed] Fix use of undefined img_data
...
Got error 'PHP message: PHP Notice: Undefined variable: img_data in /var/www/html/plugins/Embed/EmbedPlugin.php on line 544'
2021-07-16 19:44:34 +01:00
tenma
8f070f53ec
[CORE] Fix undefined offset warnings in different files
...
This problem was presentend in the following issue:
https://notabug.org/diogo/gnu-social/issues/60
AcceptHeader/util:
- Perform isset before using the required array values
2021-07-16 19:44:34 +01:00
tenma
fe2168c5ae
[ActivityPub] Add support fox search-box profile/notice grabbing
...
NoticeSearchAction:
- Add new event before finding query matches
ActivityPubPlugin:
- Subscribe new searchNotice event
- Bump minor version number
Activitypub_explorer:
- Update lookup to make remote-grabbing optional
2021-07-16 19:44:34 +01:00
tenma
3392939004
[ActivityPub] Handle DELETE-Person activity
...
ActivityPubPlugin:
- update grab_notice_from_url to make online grab optional
- subscribe events of user and profile deletion
- bump minor version number
Activitypub_inbox_handler:
- separate handle_delete for delete-note and delete-person
Activitypub_postman:
- add delete-person logic
Activitypub_delete:
- update validation method to check for the "Person" type
- update to_array method to target the activity
2021-07-16 19:44:34 +01:00
Miguel Dantas
18d9875e59
[CORE] Fix small bug where Notice was sending a JSON representation to the queue, instead of sending itself
2021-07-16 19:44:34 +01:00
tenma
58a9c71391
[AP] Fix subscription events
...
Both StartSubscribe and StartUnsubscribe had a wrong initial if-condition.
Furthermore, this events were calling Activitypub_profile::from_profile()
which is wrong because it creates the Activitypub_profile object when
the goal is only to check if it exists already.
2021-07-16 19:44:34 +01:00
tenma
6af86536aa
[AP] Subscribe RemoteFollow plugin events for allowing following with the remote-follow button
2021-07-16 19:44:34 +01:00
tenma
66c5d17469
[OStatus] Port remote-follow to the RemoteFollow plugin
...
OStatusPlugin:
- Stop adding the remote-follow button
- Subscribe to required RemoteFollow plugin events
- Drop main/ostatussub route and update urls to the main/RemoteFollowSub route
- Bump plugin minor version number
actions/ostatusgroup,
actions/ostatuspeopletag:
- Update urls to the main/RemoteFollowSub route
lib/util:
- Port required functions from OStatusSubAction and adapt to be used with the new events
2021-07-16 19:44:34 +01:00
tenma
32ae48358d
[RemoteFollow] Initial work in the RemoteFollow plugin
...
lib/default.php
- Add RemoteFollow to the list of default plugins
RemoteFollowPlugin:
- Subscribe events to add the remote-follow button
RemoteFollowInitAction:
- Handles the remote-follow form and getting the redirection url for follow completion
RemoteFollowSubAction:
- Handles the remote profile pulling and actual following
2021-07-16 19:44:34 +01:00
Miguel Dantas
d9668a6d07
[URLMAPPER] Fix small bug in URLMapper: a dynamic route might not exist even if a static one does
2021-07-16 19:44:34 +01:00
Miguel Dantas
12172f08d7
[DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word
2021-07-16 19:44:34 +01:00
tenma
84ba14426c
[AP] Update version info
2021-07-16 19:44:34 +01:00
tenma
13d7c3debe
[AP] Prevent postman to include the actor's followers for every sent activity
2021-07-16 19:44:34 +01:00
tenma
738f9cb89c
[AP] Support Private Messaging
...
ActivityPubPlugin:
- Subscribe DirectMessage events
Activitypub_inbox_handler:
- Update handle_create_note to create private messages
Activitypub_postman:
- Add create_direct_note for sending private messages
Activitypub_create:
- Update create_to_array to support the 'directMessage' attribute
- Add isPrivateNote to verify private activities
Activitypub_notice:
- Update create_note to support the 'directMessage' attribute
- Remove isPrivateNote
lib/models:
- Add Activitypub_message, the model in charge of private notes
2021-07-16 19:44:34 +01:00
tenma
3852ad175f
[AP] Fix Follow collections
...
Activitypub_profile:
- Fix subscription-counter getter functions, invalid profiles were being counted
apActorFollowingAction:
- Small rewrite of generate_following, didn't make sense to not use try-catch block
apActorFollowersAction:
- Small rewrite of generate_followers, didn't make sense to not use try-catch block
2021-07-16 19:44:34 +01:00
tenma
83f179989e
[AP] Handle unlisted/followers-only notices
...
Note that this commit isn't intended to add support for sending such notes
in GS. Instead, we handle the reception, storage and direct reply to this
type of notices, in AP.
ActivityPubPlugin:
- Subscribe the event StartNoticeSave to hack answering non-public notes
Activitypub_create:
- Add 'directMessage' attribute to the Create activity, defaulting to false for now
- Update validation method: validate 'directMessage' and add debug
Activitypub_notice:
- Handle incoming unlisted/followers-only notes
- Add support for unlisted-replies
- Add method to verify private (direct) notices
inbox_handler:
- Add handler for CREATE Note
- Prepare logic for private-messaging
- Overall refactor: Class members were continuously being passed as function arguments without need
SharePlugin:
- Stop showing the announce button in non public posts
2021-07-16 19:44:34 +01:00
tenma
0d9606ffbf
[AP] Properly target public notices
...
ActivityPubPlugin:
- Use TO as principal audience, CC as secondary
- Update note validation
2021-07-16 19:44:34 +01:00
Miguel Dantas
4a56a61094
[RedisCache] Added plugin description, fixes 'empty msgid' error
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
8d9b88a8bc
[OverwriteThemeBackground] This new plugin will let the admin set a custom background theme independent
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
616858ea89
[ExtendedProfile] Fix Admin menu option
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
428878b6d8
[MODULES] Allow to delete third party plugins
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
0d7c0069f2
[MODULES] Allow to upload third party plugins
...
Fixed some bugs
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
ca22279797
[MODULES] List all available plugins and allow enabling them via UI
...
Yet another revision of the Admin Plugin Management tool
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
5524cf331c
[DOCUMENTATION][DEVELOPERS][PLUGINS] Some updates to Plugins doc
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
a43c10582f
[TagCloud] Add Readme
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
8d848683ad
[SearchSub][README] No longer is a default plugin since 8614cd77
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
0c6d94fca8
[SamplePlugin] Review and update with the latest GNU social best practices
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
68db757269
[ConversationTree] Format the plugin, add strict typing and fix docblocks
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
76609d8f37
[OfflineBackup] Fix plugin
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
33ac4aed32
[PLUGINS] Removed OpenX as the service doesn't exist anymore
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
2d7ca37036
[GroupFavorited] Fix plugin
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
3bf010ddd8
[ExtendedProfile] Hide 'Extra fields' from profile when no field was created by the sysadmin
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
9a9fa89a0c
[ExtendedProfile] Allow to delete custom profile field
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
fd1a7a5e68
[Plugins] Incorporated GNUsocialExtendedProfile as part of ExtendedProfile
...
Also improved a lot of the plugin and made things in a way it would make sense
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
c71fa9099f
[GNUsocialProfileExtensions] Fixed plugin
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
9bb6fc3f0d
[PLUGINS] Removed GNUsocial{Photo, Photos, Video} as we don't need them anymore
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
3909d49982
[PLUGINS] Removed GeoURL as the service doesn't exist anymore
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
a4680524a7
[ForceGroup] Modernized plugin and improved documentation
2021-07-16 19:44:34 +01:00
Diogo Cordeiro
5a679ac561
[DEFAULT] Add 'DirectionDetector' as a default plugin
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
66edc49bcf
[ChooseTheme] Fixed plugin
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
0ecf9eb649
[BlankAd] Fixed plugin
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
79cce82e50
[Awesomeness] Fixed plugin
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
5ca939fdd2
[DEFAULT] Add 'AccountManager' as a default plugin
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
fa28646d43
[CORE] Core modules shouldn't show up in version action
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
20a6f1d4f4
[CORE] Plugin API now extends a new Module API
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
3821d2317e
[PLUGIN API] Bug fixes and improvements
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
99fe3e5a52
[CORE] Move plugin superclasses from /lib/ to /lib/modules/
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
c18f26145c
[CORE] Move core plugins to a new modules directory
...
For reference (raised by rozzin in IRC):
* http://foldoc.org/module
* http://foldoc.org/library
* http://foldoc.org/plugin
As noted by XRevan86, modules are not necessarily non-essential.
As we will keep the modules directory in GS root [therefore, near to
plugins/], it is evidenced the difference between both.
This is a simple yet fundamental structural change. It doesn't change
functionality but makes clearer the way we understand GNU social's
internals.
2021-07-16 19:44:33 +01:00
Miguel Dantas
8e7ab891a5
[Embed] Added support for inline images
2021-07-16 19:44:33 +01:00
tenma
0b30d932fc
[DirectMessage] Major plugin rework
...
This commit does the necessary rework to store private messages
as Notices and to support Federation. The plugin's README presents
some more detail about the changes and future work that is still
required to do.
2021-07-16 19:44:33 +01:00
tenma
23512bea14
[CORE][ROUTES] Update urlmapper to search dynamic routes before static ones when generating URLs.
...
This solves the problem of routes that differ only in having
or not $_GET params. The ones not having params (static) were
being matched first during URL generation.
The way this problem was solved was by separating the $reverse
array in both $reverse_statics and $reverse_dynamics and explicitly
traversing this last one first in the generation function. Note that
maintaining the $reverse array and unshifting dynamic routes to its
head ( and therefore to the front of the static ones ) doesn't work
since even among dynamic routes the order of arrival should be kept.
2021-07-16 19:44:33 +01:00
tenma
06fb856d24
[CORE] Add new Notice scope for private messaging
...
Notice:
- Add MESSAGE_SCOPE scope
lib/*.stream:
- Filter out notices with MESSAGE_SCOPE scope
2021-07-16 19:44:33 +01:00
Miguel Dantas
9ab13191af
[Embed] Added support for inline images
2021-07-16 19:44:33 +01:00
Miguel Dantas
bf885fbef8
[Embed] Only resize thumbnail if it's bigger than the desired size
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
233f731296
[DOCUMENTATION] Add release notes
...
Update INSTALL requirements
Update CHANGELOG
Update TODO
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
3cac110148
[ActivityPub] Move models from 'classes' to 'lib/models'
2021-07-16 19:44:33 +01:00
tenma
ec749aa350
[ActivityPub] Fix WebFinger event subscription
...
ActivityPubPlugin:
- remove reference to the first argument of onEndWebFingerProfileLinks, no need
as it is an object
2021-07-16 19:44:33 +01:00
tenma
b4b5d3e009
[ActivityPub] Fix handling of Delete Activity
...
inbox_handler:
- Call stronger validation method for Delete Activity objects
- Take into account mixed object in handle_delete
Activitypub_delete:
- Add validation method for Delete Activity objects
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
489cab0f87
[ActivityPub] This is the first release of the plugin
2021-07-16 19:44:33 +01:00
tenma
130c839adf
[ActivityPub] Use queues for notice distribution
...
ActivityPubPlugin:
- Change event-based notice distribution to queues logic
ActivityPub/lib:
- Add queue handler class activitypubqueuehandler.php
Misc:
- Add documentation for the (Start/End)InitializeQueueManager events
2021-07-16 19:44:33 +01:00
tenma
081eec3608
[OStatus] Fix notice enqueue
...
OStatusPlugin:
- Enqueue in the last position, as it should be. No need to worry about
the OMB comment, this protocol no longer have queue handlers that could
cause a conflict.
2021-07-16 19:44:33 +01:00
tenma
20d101e1f2
[ActivityPub] Ensuring federation with other software
...
ActivityPubPlugin:
- Prevent sending a Delete for an Announce
Activitypub_announce:
- Update announce_to_array to add id, to and cc information to the retrieved object
Activitypub_follow:
- Add id to the arguments of follow_to_array, useful for Accept-Follow activities
Activitypub_notice:
- Fix notice validation, url isn't a MUST
Activitypub_inbox_handler:
- Make handle_follow use the received activity id for the later Accept-Follow
Activitypub_postman:
- Fix call to the updated announce_to_array
- Fix successive unnecessary calls to ActivityPubPlugin::actor_uri()
2021-07-16 19:44:33 +01:00
brunoccast
3472eca45b
[ActivityPub] Fix notice creation
...
Activitypub_notice:
- Perform url test, use id when missing.
2021-07-16 19:44:33 +01:00
brunoccast
37936d101e
[ActivityPub] Routes
...
ActivityPubPlugin:
- Update routes to properly use the updated URLMapper
2021-07-16 19:44:33 +01:00
brunoccast
9de1c34bc0
[ActivityPub] Ensuring notice deletion
...
ActivityPubPlugin:
- Minor onDeleteOwnNotice rewrite
Activitypub_inbox_handler:
- Add deletion check to incoming notice
Activitypub_postman:
- Call the correct getUrl function
2021-07-16 19:44:33 +01:00
brunoccast
87423a0191
[ActivityPub] Ensuring Notice Favor/Disfavor
...
ActivityPubPlugin:
- Minor re-write of favor/disfavor event handlers
Activitypub_postman:
like/undo-like:
- fix proper getUrl() call
misc:
- make all activities accumulate errors (may be needed later) and log some information about it
2021-07-16 19:44:33 +01:00
brunoccast
233bdf57ac
[ActivityPub] Ensuring notice distribution
...
ActivityPubPlugin:
- Fix of accepted activity verbs to include SHARES
- Add attention profiles to delivery when announcing
Activitypub_notice:
- New local function to retrieve original URL
- Removal of unnecessary 'Atom*' attributes
- Small fix to the ensuring of actor profile
Activitypub_profile:
- New local function to fetch AP profiles from a collection
Activitypub_postman:
- Fix url passed in the announce activity
2021-07-16 19:44:33 +01:00
brunoccast
25390bf96f
[ActivityPub] Caching of Following/Followers interactions and collections
...
Follow interaction:
- Fixed mini-bug where the subscriber profile was being used as the subscribed
- Updated cache subscription-related values in both instances
- Tested and working with local GS instances
Unfollow interaction:
- Updated cache subscription-related values in both instances
- Tested and working with local GS instances
Followers/Following collections:
- Now returning ActivityPub profiles only
- Stored collections in cache
Misc:
- Fix bug concerning the retrieval of public/private-key after in-function generation
2021-07-16 19:44:33 +01:00
brunoccast
90cb222af5
[ActivityPub] Routes
...
ActivityPubPlugin:
- Update routes to properly use URLMapper
- Minor updates
2021-07-16 19:44:33 +01:00
Diogo Cordeiro
2f1ddd8280
[CORE] Add ActivityPub plugin
...
This is not the same as the one in https://notabug.org/diogo/gnu-social-activitypub-plugin
Differences to the first "release"
-> Doesn't use guzzle nor has any composer dependencies
-> Supports HTTP Signatures
-> Has basic l10n/i18n
-> Some minor bug fixes
2021-07-16 19:44:33 +01:00
Miguel Dantas
6bf888b520
[PLUGINS] Dropped Memcache in favor of Memcached. The difference between these is that they use a similarly php library to interact with memcache, but memcached is more modern
2021-07-16 19:44:33 +01:00
Miguel Dantas
be1654237d
[Memcached] Merged useful features from Memcache
2021-07-16 19:44:33 +01:00
Miguel Dantas
ac97efbf21
[PLUGINS] Updated and reviewed the Memcached plugin
2021-07-16 19:44:33 +01:00
Miguel Dantas
f689df3e68
[RedisCache] Added README with configuration instructions
2021-07-16 19:44:33 +01:00
Miguel Dantas
df468f9605
[RedisCache] Fix use of undefined variable
2021-07-16 19:44:33 +01:00
Miguel Dantas
d7c2c98a02
[PLUGINS] Removed direct call of EndCache events on all plugins, as it is now handled by the library
2021-07-16 19:44:33 +01:00
Miguel Dantas
d8d7abee9f
[CACHING] Imported Chimo's RedisCache plugin and fixed some small parts
2021-07-16 19:44:33 +01:00
Miguel Dantas
4f8ede8239
[CORE] Fixed small anti-pattern on cache code. Plugins had to throw EndCache events, when this should be done by the library
2021-07-16 19:44:33 +01:00
Miguel Dantas
19d68c9f8e
[COMPOSER] Added predis/predis and updated packages
2021-07-16 19:44:33 +01:00
50c98d53c9
Revert "[CORE] Another fix for the inboxnoticestream query"
...
This reverts commit bdd55f611f
.
2021-07-16 19:44:14 +01:00
Alexei Sorokin
bdd55f611f
[CORE] Another fix for the inboxnoticestream query
2020-06-11 21:52:44 +01:00
Miguel Dantas
0bb35d7e7f
[LinkPreview] Fix 'no candidate for action "embedproxy"'
2019-08-14 15:32:34 +01:00
tenma
357296baeb
[CORE] Fix subscription-related functions from the Profile class
...
The undifined variable $private_stream, from the User class, was causing
undifined behavior from calling requiresSubscriptionApproval. The is_null
test was added to fix this problem.
2019-08-13 03:01:24 +01:00
Miguel Dantas
bff525d26f
[DOCUMENTATION][SYSADMIN][CONFIGURE] x-static-delivery was in the wrong section
2019-08-13 03:00:19 +01:00
Diogo Cordeiro
e4bdb21a54
[NodeInfo] New endpoint and formula for computing active users
...
Seriously improved documentation
Now NodeInfo 2.0 is available at /api/nodeinfo/2.0.json
For active users we now also consider favourites and recently created accounts
Some further minor bug fixes and full review of the implementation
2019-08-12 05:35:27 +01:00
Diogo Cordeiro
c0ac7f0ac8
[DOCUMENTATION] Late update of CHANGELOG and TODO list
2019-08-12 05:35:26 +01:00
Diogo Cordeiro
eba2fe1624
[DOCUMENTATION][SYSADMIN][CONFIG][profile] Fix default of backup and restore options
2019-08-11 01:11:41 +01:00
Miguel Dantas
0030fe3aeb
[REFACTOR] Added explicit return type to all instances of QueueHandler::handle
2019-08-11 01:11:41 +01:00
Miguel Dantas
aaabf82eff
[CORE][QUEUE] Error checking and type declaration on handling notice queue events
...
Patch submitted by XRevan86
2019-08-08 02:44:14 +01:00
Diogo Cordeiro
de91d28f6f
[PEAR][DB] Import some new commits
...
Patch submitted by XRevan86
[DB/pgsql.php] Change pg_exec to pg_query
Encouraged by http://php.net/manual/en/function.pg-query.php and enables
improved monitoring by New Relic (https://newrelic.com )
[DB.php] changed count to empty for php7.2
[DB/common.php] change to array cast for php72
From: https://github.com/pear/DB/
Commits: 7d0ddaff, d04a42a5 and ea9fff4a, respectively
2019-08-08 02:44:14 +01:00
Diogo Cordeiro
24d5d200b8
[EXTLIB][VALIDATE] Fix some types
2019-08-08 02:44:13 +01:00
Miguel Dantas
573ba2ee43
[DOCUMENTATION] Added X-Sendfile/X-Accel-Redirect to the sample nginx and apache config files
2019-08-08 02:44:13 +01:00
Diogo Cordeiro
b4fced4bd7
[DOCUMENTATION] Add versioning information
...
Some other minor improvements and a bug fix in the boilerplate
2019-08-08 02:44:07 +01:00
Miguel Dantas
52310a8ad8
[Embed] Fixed error related to oembed action
2019-08-07 23:57:40 +01:00
Diogo Cordeiro
11d203c54a
[DOCUMENTATION] Fix nginx location rule's regex for install and index
2019-08-07 23:57:36 +01:00
biodantas
723f12923c
Merge branch 'master' of biodantas/gnu-social into master
2019-08-03 20:04:14 +00:00
Miguel Dantas
8b106dbc6c
[MEDIA] Fixed wrong image cropping
2019-08-03 21:02:21 +01:00
Miguel Dantas
955d5a136f
[MEDIA] Replaced internal image handling with intervention/image, which is capable of using both GD and ImageMagik
2019-08-03 17:49:37 +01:00
Miguel Dantas
2db3825940
[CORE][COMPOSER] Added intervention/image
2019-08-03 17:49:37 +01:00
Diogo Cordeiro
db3253e5d2
[CORE] Bump PHP requirement to PHP7.3+
2019-08-03 17:49:36 +01:00
Miguel Dantas
dbde8383c9
[Embed] Fixed use of undefined variable in fixup_files script
2019-08-03 17:49:36 +01:00
Miguel Dantas
6d552f15b6
[Embed] Resize thumbnails fetched by Embed to avoid keeping original images when we need only 128x128. Size configurable in config.php
2019-08-03 17:49:36 +01:00
Miguel Dantas
ba15724a62
[FORMAT][Embed] Ran php-cs-fixer on Embed's files and small style fixes
2019-08-03 17:49:33 +01:00
Diogo Cordeiro
938d286fb6
[DOCUMENTATION] Add a CHANGELOG that includes a TODO list to reach alpha in v2
2019-08-03 17:49:11 +01:00
Diogo Cordeiro
2e6c7b1bb8
[SCRIPTS] Make them work in v2 by setting PUBLICDIR
2019-08-03 17:49:11 +01:00
Miguel Dantas
5be705ca2a
[Embed] Updated fixup_files.php script to be able to fix broken oEmbedinfo using the --broken-oembed flag
2019-08-03 17:49:10 +01:00
Miguel Dantas
07b4cfaeae
[Embed] Hide error from the UI and just don't display an image if the remote image is not valid
2019-08-03 17:49:10 +01:00
Miguel Dantas
c9379b3608
[Embed] Fix bug where we we're losing track of a file, in case the image needed to be reencoded
2019-08-03 17:49:10 +01:00
Miguel Dantas
22c8c96249
[Embed] Fixed Embed tests
2019-08-03 17:49:10 +01:00
Miguel Dantas
d66828c2bf
[Embed] Fixed bug where sometimes images were written outside the site root
2019-08-03 17:49:09 +01:00
Miguel Dantas
a244f3ba4d
[Embed] Removed old oEmbed and OpenGraph implementation
2019-08-03 17:49:09 +01:00
Miguel Dantas
0c20d35206
[Embed] Refactoring and bug fixing
2019-08-03 17:49:09 +01:00
Miguel Dantas
462ea26303
[Embed] Using oscarotero/Embed as first attempt to get oEmbed/OpenGraph data, fallback
...
to previous implementation otherwise.
2019-08-03 17:49:09 +01:00
Miguel Dantas
b25632ebc4
[PLUGINS] Fixed oEmbed dependents to use Embed
2019-08-03 17:49:06 +01:00
Miguel Dantas
2a2b3f72fb
[Embed][DB] Renaming the 'file_oembed' table to 'file_embed' on upgrade
2019-08-03 17:48:28 +01:00
Miguel Dantas
52819d39d9
[OEmbed][Embed] Renamed OEmbed plugin to Embed
2019-08-03 17:48:26 +01:00
Miguel Dantas
1d41ff16d6
[COMPOSER] Added embed/embed
2019-08-03 17:47:29 +01:00
Diogo Cordeiro
36dd245ee3
[DOCUMENTATION] New socialfy solution
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
e0bc35b975
[CORE] Avatars are in PUBLICDIR in v2
...
Fixed a bug in the Installer
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
893bafa14b
[INSTALL] Minor reformatting and modernization. Shouldn't change functionality significatively.
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
7d262ad50b
[CORE] Fixed some small issues with PEAR
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
d9e7862cea
[CORE][COMPOSER] Ensure we are compatible with PHP 7.0.0
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
9f30c299ee
[CORE] Make tests great gain
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
39845444cc
[DOCUMENTATION] Update description of extlib and vendor directories
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
ec32db2dd6
[CORE][COMPOSER] Add hoa/consistency
...
Renamed curry to callable_left_curry
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
411e8ed79d
[CORE] Downgrade phpseclib to a working state
2019-08-03 17:47:26 +01:00
Daniel Supernault
c1c2a9f1a1
[DEVTOOL] Add a robust and modern REPL
2019-08-03 17:47:26 +01:00
Daniel Supernault
2850e56f30
[CORE] Add custom favicon configuration support
...
Adds support for custom favicons defined in config.php that override theme favicons.
2019-08-03 17:47:26 +01:00
Daniel Supernault
9c0354bbf1
[CORE] Remove function_exists() calls and add up default bcrypt cost to 12.
2019-08-03 17:47:26 +01:00
Daniel Supernault
c09f1c2443
[CORE] Add Argon2I support
...
Add Argon2I support, disabled by default.
2019-08-03 17:47:25 +01:00
Daniel Supernault
912f2c3567
[CORE] Update AuthCryptPlugin
...
Added password_hash() (bcrypt) support with fallback to crypt() for older PHP versions.
2019-08-03 17:47:25 +01:00
Daniel Supernault
ad51998d67
[CORE] Add timing safe backwards compatible password_verify
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
1049080df5
[CORE] Move public resources to a /public directory
...
Advantages:
* Increases security by preventing direct access to file/
* We are careful and have a defined('GNUSOCIAL') || die() to prevent
direct access to GS files, but we may miss one or a vendor/extlib may
not be as careful
* Improves directory structure - It's more natural to physically
separate what is public from what are GNU social resources
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
966b00617e
[CORE] Remove PEAR Command as it is not used
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
b408208e4c
[FORMAT] Run php-cs-fixer in php-gettext
2019-08-03 17:47:24 +01:00
Diogo Cordeiro
a1edc2c6a9
[CORE][COMPOSER] Move plugins extlibs to composer (where appropriate)
2019-08-03 17:47:24 +01:00
Diogo Cordeiro
2a06261f75
[CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
...
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00
brunoccast
0b58465fb9
[CORE] Fix notice delete-form
...
DeletenoticeAction:
- Added tombstone check before deletion
NoticeListItem:
- Added tombstone check before showing delete-form
ActivityVerb:
- The plugin was overwriting the deletenotice route. Added stronger
regexp to the connected routes.
2019-08-03 17:47:23 +01:00
Diogo Cordeiro
f67a93eddc
[CORE] Bump Database requirement to MariaDB 10.3+
2019-08-03 17:47:23 +01:00
Diogo Cordeiro
7044f0e2cf
[Media] Fix undefined variable box in imagefile.php
2019-08-03 17:47:23 +01:00
Miguel Dantas
ed7a88ce66
[StoreRemoteMedia] Added documentation for feature which limits the maximum filesize which is kept locally
2019-08-03 17:47:22 +01:00
Miguel Dantas
e392160435
[ROUTES] Fixed attachment routes, broken by channges in fa378462f4
2019-08-03 17:47:17 +01:00
brunoccast
5c0a3102ff
[ROUTES] Allow accept-header specification during router creation
...
Router:
- Fix calls to connect, most of them were misusing the function's params
URLMapper:
- Minor fixes
- Documentation
- Add support for accept-header specification
Plugins/*:
- Fix calls to connect
2019-08-03 17:47:16 +01:00
brunoccast
2032c7c1f7
[ROUTES] PSR2-format
2019-08-03 17:31:44 +01:00
Miguel Dantas
d295d8b43c
[CORE] Added documentation and fixed typo in attachments action
2019-08-03 17:31:44 +01:00
Miguel Dantas
ee8bac9ad7
[CORE] Fix bug where we we're losing track of a file, in case the image needed to be reencoded
2019-08-03 17:31:44 +01:00
Miguel Dantas
4863bd30d7
[CORE] Fixed Media tests
2019-08-03 17:31:43 +01:00
Miguel Dantas
7070a14480
[CORE][StoreRemoteMedia] Fixed bug where sometimes images were written outside the site root
2019-08-03 17:31:43 +01:00
Diogo Cordeiro
a38f25f7cd
[PEAR] Modernize Validate code
...
Upgraded IDNA to IDNA2
Added PEAR Date
> fixed: The each function is deprecated
2019-08-03 17:31:43 +01:00
Miguel Dantas
a5259073df
[CORE] Fix X-Sendfile for nginx, using the X-Accel-Redirect header
2019-08-03 17:31:43 +01:00
Miguel Dantas
3e5ce46e98
[CORE] Fixed bug where the http connection was using the wrong size for thumbnails, and returning the wrong one
2019-08-03 17:31:42 +01:00
Miguel Dantas
f746866b65
[StoreRemoteMedia] StoreRemoteMedia now uses the new filename format, which allows it to display correctly in the UI. Formatting fixes
2019-08-03 17:31:42 +01:00
Miguel Dantas
8f31a1a820
[MEDIA][OEMBED] Fixed regression in OEmbed, because it relied on accessing the files directly, which previous commits broke. The File table really should have a bool...
2019-08-03 17:31:42 +01:00
Miguel Dantas
4187568522
[OEMBED][UI] Skip adding an image thumbnail for oembed results if we
...
don't have a file locally to generate it, which can happen, for
instance, if StoreRemoteMedia is disabled
2019-08-03 17:31:42 +01:00
Miguel Dantas
da82048d77
[MEDIA] Fix trying to display file wich is not available locally
2019-08-03 17:31:41 +01:00
Miguel Dantas
04d1caff78
[CORE] Fixed bug where all thumbnails were using the original file
2019-08-03 17:31:41 +01:00
Miguel Dantas
bea06da531
[INSTALL] Fixed issue in installing where default.php needs util.php but it's not loaded
2019-08-03 17:31:41 +01:00
Miguel Dantas
7643f3cf7b
[CORE][ACTION] Removed getfile action. Superseded by attachment/*/download, which additionally uses a file hash as oposed to a filename.
...
Additionally, added etag and last modified HTTP headers to attachments, to more effectively take advantage of caching
2019-08-03 17:31:41 +01:00
Miguel Dantas
aa5c6bbf08
[CORE][UI] Made attachment actions and its subactions be able to identify attachments by id and by filehash. Changed the url stored in the DB to be attachment//view
2019-08-03 17:31:41 +01:00
Miguel Dantas
9536f2a909
[CORE] Refactored attachement actions to remove duplicate code
2019-08-03 17:31:40 +01:00
Miguel Dantas
c7475d78b4
[CORE][UI][ROUTER] Added view action, which inlines images and videos but downloads everything else. Fixed File url to get an URL fromthe view action, so when a making a remote notice, the correct URL is used, not accessing directly to the file
2019-08-03 17:31:40 +01:00
Miguel Dantas
3c9a07677e
[CORE] Attachments and thumbnails aren't accessed directly by the file under the file storage folder, but indirectly from PHP, so that access to the file folder can be blocked in the server config
2019-08-03 17:31:40 +01:00
Miguel Dantas
b669f57068
[CORE] Fixed common_get_preferred_php_upload_limit, because some values in php.ini can be -1 or 0 for unlimited
2019-08-03 17:31:40 +01:00
Miguel Dantas
ccebe536b3
[MEDIA] Removed blacklisted extensions, "trusts" upload extension (doesn't affect anything) and updated sysadmin documentation
...
Fixes bug which broke the UI. Oops
2019-08-03 17:31:39 +01:00
Miguel Dantas
b9a0733062
[MEDIA][CORE] Add common function for converting a string with a size unit to an int and MediaFile uses file_quota
2019-08-03 17:31:39 +01:00
Miguel Dantas
5961b45140
[MEDIA][UI] In case an attachment preview isn't possible, the name is displayed anyway
2019-08-03 17:31:39 +01:00
Miguel Dantas
5f53738376
[MEDIA][UI] Added preview support for BMP, WEBP and ICO, displaying the name underneath, centered
2019-08-03 17:31:38 +01:00
Miguel Dantas
5eb4a7d711
[MEDIA] File downloader now in PHP, added proper name in the UI and changed the format for new attachment file names
...
The file downloader was changed from a simple redirect to the file to one
implemented in PHP, which should make it safer, by making it possible disallow
direct access to the file, to prevent executing of atttachments
The filename has a new format:
bin2hex("{$original_name}")."-{$filehash}"
This format should be respected. Notice the dash, which is important to distinguish it from the previous
format, which was "{$hash}.{$ext}"
This change was made to both make the experience more user friendly, by
providing a readable name for files, as opposed to it's hash. This name is taken
from the upload filename, but, clearly, as this wasn't done before, it's
impossible to have a proper name for older files, so those are displayed as
"untitled.{$ext}".
This new name is displayed in the UI, instead of the previous name.
2019-08-03 17:31:36 +01:00
Diogo Cordeiro
f717081893
[OEmbed] Revert filename change introduced with 96ce758c
2019-08-03 17:30:52 +01:00
Diogo Cordeiro
01b5118c6f
[Oembed] Refactoring and some improvements (namely documentation)
...
Imported some changes from postActiv
2019-08-03 17:30:52 +01:00
Diogo Cordeiro
d705bcbd98
[CORE] Use random_bytes() if available and improve common_confirmation_code() randomness.
...
With PHP 7 comes the [random_bytes()](https://php.net/manual/en/function.random-bytes.php ) and the [random_int()](https://www.php.net/manual/en/function.random-int.php ) function which generates cryptographically secure pseudo-random bytes and integers, respectively.
2019-08-03 17:29:14 +01:00
Diogo Cordeiro
f0f5ecb756
[SCRIPTS] Fix sessiongc by XRevan86
2019-08-01 14:38:04 +01:00
Diogo Cordeiro
c0342b1482
[DOCUMENTATION] Allow install.php to be ran with sample nginx conf
2019-08-01 14:37:59 +01:00
Diogo Cordeiro
d1fc7c0774
[CORE] MySQL 5.5 support fully restored
2019-07-25 15:35:24 +01:00
Diogo Cordeiro
46be9b76ef
[CORE] Fix wrong Profile_list schema and set created in user_im_prefs properly - by XRevan86
...
This reverts 496ab8c9
, which was a bad correction of user_im_prefs values
2019-07-24 22:28:06 +01:00
Diogo Cordeiro
6c8d2e159e
[DOCUMENTATION] Plugin events should be declared in the plugin's directory not in the core
2019-07-15 03:25:16 +01:00
Diogo Cordeiro
db9bb6b5a1
[OStatus] null being returned instead of an empty array
...
Fixes: "Invalid argument supplied for foreach" in onEndFindMentions
2019-07-10 00:34:46 +01:00
Diogo Cordeiro
5ea0d74a57
[UI] Long strings/words in dents weren't being wrapped
2019-07-10 00:33:19 +01:00
Diogo Cordeiro
30a1a460b7
Minor reformatting of upgrade.php, doesn't change functionality
2019-07-01 23:14:39 +01:00
Diogo Cordeiro
5eb61c17d4
Regression introduced in daa5f87f
fixed by XRevan86
...
require_once(): Failed opening required 'Error.php' in extlib/DB/DataObject.php on line 562
2019-07-01 23:14:23 +01:00
Diogo Cordeiro
0a4eeb89da
[CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86
2019-07-01 22:40:21 +01:00
Diogo Cordeiro
11dc170ead
[CORE][FRAMEWORK] URL_REGEX_VALID_PATH_CHARS didn't recognize the parenthesis sign.
2019-06-26 15:54:51 +01:00
Diogo Cordeiro
98c0c1ed53
Implement $config['site']['logdebug']
2019-06-25 22:59:10 +01:00
Diogo Cordeiro
83a05724b8
[CORE] Fix subscriptions and subscribers list (related to 44653d339d
)
2019-06-24 14:06:43 +01:00
Diogo Cordeiro
44653d339d
[Poll] Refactoring and minor bug fixes
2019-06-23 23:06:04 +01:00
Diogo Cordeiro
f2705180e0
[TagSub] Fix User's tags list issue
...
Issue introduced with 6d9f390b
and 9a92b58057
2019-06-18 14:56:55 +01:00
Diogo Cordeiro
306d80de94
[DATABASE] Revert accidental regression introduced with 9a39ebe66f
2019-06-14 12:00:10 +01:00
Diogo Cordeiro
2740ff8c4c
[DOCUMENTATION] Minor corrections
...
Add two missing contributors
Bumped patch due to changed introduced with 0583a6a904
2019-06-12 12:55:42 +01:00
Daniel Supernault
74ad4038ac
Allow username or email in login form
2019-06-12 03:25:06 +01:00
Diogo Cordeiro
3f8593268e
[Nodeinfo][TRANSLATION] Fix languages meta-data
2019-06-12 03:25:02 +01:00
Diogo Cordeiro
8ea83aac48
[OStatus] Wrong exception was being caught
2019-06-12 02:20:58 +01:00
Diogo Cordeiro
81d65afb28
[RELEASE] The Invicta Crusade
2019-06-11 18:37:25 +01:00
Diogo Cordeiro
c93547b080
[OpenID] Added support for GS's Internal Session Handler
2019-06-10 16:49:48 +01:00
Diogo Cordeiro
54f75683c7
[OpenID] s/sync/synch
...
This commit also fixes the translation in /plugins/OpenID/actions/finishopenidlogin.php#L203-L204 (s/Syncronize/Synchronize)
Sync is a bad technical jargon and we should use Synch instead.
Synch is already used in other parts of GNU social as seen in plugins/TwitterBridge/classes/Twitter_synch_status.php
2019-06-10 15:51:56 +01:00
Diogo Cordeiro
abfd691fda
Merge branch 'nightly' of biodantas/gnu-social into nightly
2019-06-09 23:44:43 +00:00
Miguel Dantas
20c73f0596
[FORMATING] Ran php-cs-fixer on lib/mediafile.php, lib/imagefile.php and classes/File.php
2019-06-10 00:38:16 +01:00
Miguel Dantas
b224d93098
[MEDIA] ImageFile now extends MediaFile and validates images more aggressively.
...
Default supported files need to use consistent names. Bumped version to 1.20.0
ImageFile has been changed to extend MediaFile and rely on it to partially
validate files. This validation has been extended to not rely solely on
Fileinfo, as it is disabled on some places. Now it'll try to use the shell
command `file`, if Fileinfo isn't available.
ImageFile now converts every new upload to PNG, except JPEG and GIF, which
are kept, but still resized (to the same size), to remove possible scripts
embedded therein.
MediaFile::fromUpload will return an ImageFile if the uploaded file is an image
or a MediaFile otherwise.
MediaFile can be constructed with an id with value -1 to denote a temporary
object, which is not added to the DB. This is useful to create a temporary
object for representing images, so it can be used to rescale them.
The supported attachment array needs to be populated with the result of calling
`image_type_to_extension` for the appropriate image type, in the case of images.
This is important so all parts of the code see the same extension for each image
type (jpg vs jpeg).
Added documentation to classes/File.php and to lib/MediaFile and lib/ImageFile
2019-06-10 00:35:53 +01:00
Diogo Cordeiro
719bf065ca
Merge branch 'nightly' of tenma/gnu-social into nightly
2019-06-09 17:16:01 +00:00
brunoccast
a1041a53f7
[THEME] Fix OpenID settings styles
...
- Action buttons are now side-by-side
- Dropped unused style rule concerning the solo-positioning of the Remove button
- Bump GS patch version
2019-06-09 18:13:04 +01:00
Diogo Cordeiro
711badb6b4
Merge branch 'openid-settings-sync' of tenma/gnu-social into nightly
2019-06-09 16:05:12 +00:00
brunoccast
1e4063254b
[OpenID] Added synchronization button and corresponding action
...
UI:
- "Delete" area is now "Actions" area
- Updated themes to better reflect the changes
Routes:
- index.php?action=finishsyncopenid => finishsyncopenid
Translations:
- Updated OpenID translation files
- Updated OpenID POT file
Versioning:
- Bump OpenID minor version
- Bump GS patch version
Why would have labeling the Synchronize button of Sync been of bad taste? - answered by XRevan86:
In "synchronise" "ch" is a digraph meaning /k/ (actually /x/ turned into /k/ in English but whatever).
So… not separate letters.
It's like "ph" in "alphabet", or "sh" in "sheep", or "ch" in "chop" -- "ch" can mean a whole variety of sounds.
2019-06-09 17:04:26 +01:00
brunoccast
b8352e912f
[THEME] Fix styles identation
2019-06-09 17:00:06 +01:00
brunoccast
69a1d77480
[OpenID] Add sync confirmation in both OpenID settings and login connection
2019-06-09 17:00:06 +01:00
Diogo Cordeiro
54d7a7cccd
Merge branch 'fix-plugins-copyright' of tenma/gnu-social into nightly
2019-06-09 15:35:20 +00:00
brunoccast
c7afe2f86c
[TRANSLATION] Update Plugin POs
2019-06-09 16:10:03 +01:00
Diogo Cordeiro
5f4e3fe0eb
[TRANSLATION] Update POTs and normalize files
2019-06-08 18:41:10 +01:00
Miguel Dantas
fb95af1cf5
Added Spanish, Polish and Esperanto translations to NodeInfo plugin
2019-06-08 18:36:04 +01:00
brunoccast
7b73d267d5
[TRANSLATION] Update license and copyright notice in translation files
2019-06-08 18:36:04 +01:00
Diogo Cordeiro
08b6cfde66
[SESSION] Add backwards compatibility for third party plugins depending on old Session::cleanup()
...
Namely Qvitter
2019-06-08 00:31:32 +01:00
Diogo Cordeiro
2110c20ecc
[DOCUMENTATION] README.md should mention about the importance of running upgrade.php script
2019-06-07 16:42:50 +01:00
Diogo Cordeiro
9f51692f26
[NGINX conf] Move /var/run to /run
...
As seen in https://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
Thanks to XRevan86 for reporting this :)
2019-06-07 15:02:10 +01:00
Diogo Cordeiro
02c67fd114
[Nodeinfo][DATABASE][Usage_stats] Fix wrong type for modified column
2019-06-07 15:02:10 +01:00
Diogo Cordeiro
b6be1a3659
[DATABASE][User_openid_prefs] Fix wrong type for modified column
...
Patch submited by Sorokin Alexei (XRevan86)
2019-06-07 15:02:09 +01:00
brunoccast
00b4a084ad
PSR2-format
2019-06-07 15:02:09 +01:00
brunoccast
061e7891e9
Cleanup and documentation of common_ensure_session
...
- Remove redundant branch
- Remove error suppression of session_start()
2019-06-07 15:02:09 +01:00
Diogo Cordeiro
a1af5562de
EmailRegistration plugin flow requires a confirmation address before user creation
2019-06-07 15:02:09 +01:00
Diogo Cordeiro
df84ccd916
Nodeinfo has a special rule for upgrades
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
2f118fde9e
Update /main/version information
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
46f98b3142
[VersionBump] 1.19.0, fairly late
...
The core plugins whose version was attached to GS's were reseted to 2.0.0.
2.0.0 was chosen as reset version for plugins because it is higher than
the one that was set by inheriting GS version. Furthermore, it's a
major change from prior plugin versioning system thus it also makes
semantic sense.
Justification for version bump:
== GS ==
9a4ab31f26 1.19.0
c13b935201
1.18.3
c13b935201
1.18.2
18fc39d2cf
1.18.1
c083a8bcc2
1.18.0
e8783d46d0
1.17.1
d9a42550ff
1.17.0
1536d3ef29
1.16.0
c03ed457a6
1.15.0
d2e6519bad
1.14.2
fe411e8138
1.14.1
b17e0b4169
1.14.0
daa5f87fd4
1.13.0
d75b5d2f4a
1.11.7
f6dbf66983
1.11.6
6cf674f8f8
1.11.5
7845a09b34
1.11.4
e4d432295d
1.11.3
339204f1ee
1.11.2
a4e679a118
1.11.1
7967db6ff5
1.11.0
bc030da320
1.10.1
9cc7df51d6
1.10.0
bf7f17474d
1.9.2
8a07edec5f
1.9.1
0042971d74
1.9.0
6b5450b7e6
1.8.0
5dcc98d1c6
1.7.0
e6667db0cd
1.6.0
3290227b50
1.5.0
a59c439b46
1.4.0
496ab8c920
1.3.10
986030060b
1.3.9
1d529c021a
1.3.8
f89c052cf8
1.3.7
38f2ecefac
1.3.6
e473937cb9
1.3.5
9a39ebe66f
1.3.4
ddc3cecfc0
1.3.3
2b43d484eb
1.3.2
e8e487187e
1.3.1
== Plugins ==
XMPP plugin
e0887220b0
bump patch
e186ad57d0
bump patch
OStatus
e186ad57d0
bump patch
Nodeinfo
ceae66a30f
bump minor
586fb5a517
bump major
195296846e
bump minor
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
72ee098e0b
[DOCUMENTATION] EVENTS.txt: Add Nodeinfo plugin event
2019-06-07 15:02:07 +01:00
brunoccast
43df2d201c
Extend Action with redirect after login logic, update some actions to use it
2019-06-07 15:02:07 +01:00
brunoccast
691df04103
PSR2-format
2019-06-07 15:02:07 +01:00
Diogo Cordeiro
ab24f59660
[DOCUMENTATION] Add CONTRIBUTING information for developers
...
Inspired both from GNU FM, postActiv and Moodle
2019-06-07 15:02:00 +01:00
Diogo Cordeiro
3886db64bc
[DOCUMENTATION] Update README.md
2019-06-05 22:48:29 +01:00
Diogo Cordeiro
e7a875755d
[DOCUMENTATION] Move CREDITS to its own file and update list from postActiv
2019-06-05 22:48:29 +01:00
Diogo Cordeiro
7cf4e1bb09
[DOCUMENTATION] Convert INSTALL to markdown and update the requirements
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
eaea9d48c5
[DOCUMENTATION] Convert Configure to markdown, format and improve it by maiyannah and Normandy
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
2e9fa8f4b7
[DOCUMENTATION] Reorganize documentation
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
d7d63e1464
[NGINX conf] Stop serving files as indexAphp, index:php
...
Removed some boilerplate and overly specific configuration
2019-06-05 22:48:21 +01:00
Diogo Cordeiro
bb175f3d4e
[NGINX conf] Fix PHP files being served as files.
2019-05-31 10:00:57 +01:00
Diogo Cordeiro
4ca32628f7
[SESSION] Log messages were a bit confusing
...
Reported by XRevan86
2019-05-26 20:14:05 +01:00
Diogo Cordeiro
6b4beb90e1
Merge branch 'master' of postblue/gnu-social into master
2019-05-26 19:12:29 +00:00
Guillaume Hayot
d7adc4e13f
Changing URI to community plugins page
2019-05-26 20:40:36 +02:00
Guillaume Hayot
c13b935201
Removing community plugins
2019-05-26 20:34:47 +02:00
Diogo Cordeiro
18fc39d2cf
Fix noticesearch tag regex
2019-05-22 22:29:33 +01:00
Diogo Cordeiro
c083a8bcc2
[SESSION] Implement SessionHandlerInterface instead of setting custom handlers by XRevan86
2019-05-22 22:29:33 +01:00
Diogo Cordeiro
e8783d46d0
[SESSION] Increase type strictness for full PHP adherence
...
Documented this file (adapted from maiyannah's postActiv doc)
This commit also fixes PHP Warning: session_write_close(): Session callback expects true/false return value in classes/Session.php on line 289 (spoted by XRevan86)
Observation: In a newer release we will be replacing this kind of castings with actual explicit PHP7 return types
2019-05-22 22:29:26 +01:00
Diogo Cordeiro
d9a42550ff
is_rtl should handle lang instead of code
2019-05-16 22:51:11 +01:00
Diogo Cordeiro
ceae66a30f
[Nodeinfo] Fix twitterimport enabled check
2019-05-11 20:52:02 +01:00
Diogo Cordeiro
031a491abd
Improved version of nginx sample config by XRevan86
2019-05-11 20:50:08 +01:00
Diogo Cordeiro
1536d3ef29
[XML/HTML Outputter] General improvements and refactoring as well as some bug fixes
2019-05-07 15:57:19 +01:00
Diogo Cordeiro
c03ed457a6
Fix broken user activitystreams feed due to deleted notices
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
d2e6519bad
lib/ping.php - Fix PHP 7.3 Warning switch continue -> break
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
688fa4839c
[Nodeinfo] Correct HELP info on fix_stats.php
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
fe411e8138
Fix some typos/small obvious bugs on twitterRssGroupArray
2019-05-03 17:09:23 +01:00
Diogo Cordeiro
515682c0cd
Merge branch 'ATOM-priority" from Alexandre Alapetite into HEAD
...
source: https://git.gnu.io/gnu/gnu-social/merge_requests/174
2019-05-03 13:30:20 +01:00
Diogo Cordeiro
b17e0b4169
Update PEAR to v1.10.9 and patch it so it works quietly
2019-04-28 23:39:36 +01:00
Diogo Cordeiro
daa5f87fd4
Ugly patch to maintain old DB handle code working quietly
...
We have to replace this database engine with a modern one
2019-04-27 18:23:51 +01:00
Diogo Cordeiro
d75b5d2f4a
Make group edit and logo great again by XRevan86
2019-04-27 17:39:42 +01:00
Diogo Cordeiro
f6dbf66983
Undefined user in passwordsettings by XRevan86
2019-04-27 15:15:11 +01:00
Diogo Cordeiro
6cf674f8f8
Some minor refactoring on session handler
2019-04-27 00:28:05 +01:00
Diogo Cordeiro
7845a09b34
RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86
2019-04-26 23:08:16 +01:00
Diogo Cordeiro
e4d432295d
Only variables should be assigned by reference
...
caught by XRevan86
2019-04-26 23:03:37 +01:00
Diogo Cordeiro
339204f1ee
Fix negative one subscriptions by XRevan86
...
Only local users are subscribed to themselves.
2019-04-26 01:10:53 +01:00
Diogo Cordeiro
a4e679a118
Add Registration form hook points by XRevan86
2019-04-26 00:59:38 +01:00
Diogo Cordeiro
195296846e
Add russian translation to NodeInfo plugin by XRevan86
2019-04-26 00:43:58 +01:00
Diogo Cordeiro
7967db6ff5
Various obvious bug fixes and better PHP 7 support
...
Many of these came from a XRevan86 patch
2019-04-26 00:34:17 +01:00
Diogo Cordeiro
c4f962a7d0
Fix wrong path on Realtime cleanupchannels script by XRevan86
2019-04-25 23:12:58 +01:00
Diogo Cordeiro
bc030da320
Fix undefined variables on Favorite plugin by XRevan86
2019-04-25 23:12:58 +01:00
Diogo Cordeiro
9cc7df51d6
Some obvious bug fixes for i18n
2019-04-25 23:12:46 +01:00
Diogo Cordeiro
bf7f17474d
When an attachment fails to load, it shouldn't destroy the whole layout by XRevan86
2019-04-25 20:46:47 +01:00
Diogo Cordeiro
8a07edec5f
Fix fulltext search by XRevan86
2019-04-25 19:32:20 +01:00
Diogo Cordeiro
0042971d74
Fix bug in 36a55d84
.
...
We still have to further review and improve the caching of streams.
Important related changes: 2272cc24#diff-8633314d55a2834ab2ea425d7157bec14aca672L60
Important related discussion: https://github.com/chimo/gs-rediscache/issues/{1,2}
2019-04-25 18:51:44 +01:00
Diogo Cordeiro
6b5450b7e6
Faster inboxnoticestream.php by XRevan86.
...
This commit consequently reverts 5dcc98d1c6
and a59c439b46
. This translated the php based version into a faster SQL query.
2019-04-25 18:48:53 +01:00
Diogo Cordeiro
5dcc98d1c6
inboxnoticestream.php gotta go fast
2019-04-23 23:10:43 +01:00
Diogo Cordeiro
fc4aa470b2
StoreRemoteMedia - removeRemoteMedia script - Add missing newline in bad limit error
2019-04-23 22:11:29 +01:00
Diogo Cordeiro
586fb5a517
Faster NodeInfo stats
2019-04-22 20:03:28 +01:00
Diogo Cordeiro
e186ad57d0
OStatus and XMPP plugins now inform Nodeinfo plugins about their activity
2019-04-22 07:28:45 +01:00
Diogo Cordeiro
e6667db0cd
Add chimo's Nodeinfo plugin as a default GNU social plugin
2019-04-22 06:50:28 +01:00
Diogo Cordeiro
e0887220b0
XmppPlugin - Fix preg_match() - Compilation failed
...
Disallowed Unicodecode point (>= 0xd800 && <= 0xdfff)
2019-04-21 17:13:07 +01:00
Diogo Cordeiro
3290227b50
Modern version of XMPPHP extlib
...
Original XMPPHP is no longer maintained
Therefore I've done some optimizations and imported some commits from birkner and zorn-v forks.
None of the forks really looked ready to be adopted...
2019-04-21 17:13:07 +01:00
Diogo Cordeiro
a59c439b46
Faster inboxnoticestream.php by XRevan86
2019-04-21 00:56:56 +01:00
Diogo Cordeiro
7b6c887d76
OStatus plugin - Merge some bug fixes by XRevan86
2019-04-20 23:27:46 +01:00
Diogo Cordeiro
25eb06ac46
Remove from .gitignore stuff that should clearly go to developer's global gitignore instead
2019-04-20 01:50:02 +01:00
Diogo Cordeiro
0df8531834
Fix typo on 986030060b
2019-04-19 21:16:42 +01:00
Diogo Cordeiro
496ab8c920
User_im_prefs - Fix wrong schemaDef
2019-04-19 20:54:24 +01:00
Diogo Cordeiro
986030060b
XMPPHP - Fix string as array usage errors on PHP 7
2019-04-19 15:56:51 +01:00
Diogo Cordeiro
2d20656e22
[StoreRemoteMedia] script removeRemoteMedia.php was trying to remove already removed files
...
Sometimes different posts are associated with the same file, that case wasn't considered
Thanks to XRevan86 for spotting this issue.
2019-04-18 01:03:09 +01:00
Diogo Cordeiro
98ebe1f63b
[StoreRemoteMedia] script removeRemoteMedia.php was deleting every file posted without being via web interface
...
Added two more options: delete image-only attachments; delete previews (like oembed thumbs)
Some further minor improvements.
Thanks to colegota for spotting this issue.
2019-04-17 02:05:04 +01:00
Diogo Cordeiro
1d529c021a
Updated HTMLPurifier to 4.10.0
...
Source: http://htmlpurifier.org/releases/htmlpurifier-4.10.0-lite.zip
Release date: 2018-02-22
2019-04-16 01:11:54 +01:00
Diogo Cordeiro
f89c052cf8
Set default value of datetime columns to CURRENT_TIMESTAMP
...
This resolves an issue with MySQL 5.7 where the default SQL_MODE is set to disallow zero dates (i.e. '0000-00-00 00:00:00')
Fixed thanks to Francis and Normandy from postActiv.
2019-04-16 00:43:17 +01:00
Diogo Cordeiro
38f2ecefac
extlib/DB/DataObject - Fix PHP 7.3 Warning switch continue -> break
...
Also reformatted under PSR norms
2019-04-16 00:20:20 +01:00
Diogo Cordeiro
8305641b20
Update master GS version
2019-04-04 10:12:56 +01:00
Alexandre Alapetite
e473937cb9
Give priority to ATOM to expose WebSub.
...
Hello,
The ATOM feed contains the hub declaration for WebSub / PubSubHubbub, but the RSS / RDF / JSON versions do not.
Currently, the ATOM version is declared last.
RSS/ATOM clients typically pick whichever version comes first, and will thus not see the WebSub feature.
I therefore suggest putting the ATOM version first, as it is more feature-rich than the other versions.
Clients not compatible with ATOM would not pick it anyway due to the different type attribute.
See same PR for Mastodon: https://github.com/tootsuite/mastodon/pull/9302
and WebSub tester https://websub.rocks/publisher
2018-11-20 22:39:23 +00:00
Diogo Cordeiro
8c9efff1ac
Merge branch 'issue-326' into 'master'
...
Script for removing remote files until a given date
See merge request diogo/gnu-social!5
2018-09-14 21:33:54 +00:00
Diogo Cordeiro
37f8d3bef2
Merge branch 'issue-337' into 'master'
...
Add option to send email to --all users on sendemail.php script
See merge request diogo/gnu-social!4
2018-09-14 21:33:21 +00:00
Diogo Cordeiro
d1ba0dddec
Merge branch 'issue-338' into 'master'
...
Database fields with timestamp type now allow CURRENT_TIMESTAMP to be set as default value
See merge request diogo/gnu-social!3
2018-09-14 21:30:16 +00:00
Diogo Cordeiro
4a8f330ed2
Merge branch 'issue-323' into 'master'
...
Add default values for avatar and attachment directories in web installer
See merge request diogo/gnu-social!2
2018-09-14 21:29:32 +00:00
Diogo Cordeiro
63ab20d20b
Merge branch 'nightly' into 'master'
...
GNU social 1.3.0
See merge request diogo/gnu-social!1
2018-09-14 21:27:40 +00:00
Diogo Cordeiro
9a39ebe66f
Database fields with timestamp type now allow CURRENT_TIMESTAMP to be set as default value
...
Add default values to created and modified columns of Profile_list table to fix issue #338
2018-08-25 14:07:52 +01:00
Diogo Cordeiro
ddc3cecfc0
Add default values for avatar and attachment directories in web installer
2018-08-25 14:05:56 +01:00
Diogo Cordeiro
45479c90a3
Add option to send email to --all users on sendemail.php script
2018-08-23 23:48:38 +01:00
Diogo Cordeiro
b3c3af1ef6
Merge branch 'issue-333' into 'nightly'
...
UserFlag: Pass proper profile to FlaggedProfileListItem
See merge request gnu/gnu-social!168
2018-08-23 21:43:31 +00:00
Chimo
2b43d484eb
UserFlag: Pass proper profile to FlaggedProfileListItem
...
Fixes #333
2018-08-16 19:16:15 -04:00
Diogo Cordeiro
9688a55d56
Merge branch 'nightly' into 'nightly'
...
Group Members page: Fix typo in groupmembers.php
See merge request gnu/gnu-social!167
2018-08-14 21:18:10 +00:00
Chimo
e8e487187e
Group Members page: Fix typo in groupmembers.php
...
Fixes #332
2018-08-12 18:32:16 -04:00
Diogo Cordeiro
4211206e3b
Script for removing remote files until a given date
2018-08-09 17:26:05 +01:00
mmn
ffe14fe5f3
Merge branch 'nightly' into 'nightly'
...
fixed hard coded twitter char limit
See merge request gnu/gnu-social!154
2017-12-17 17:41:14 +00:00
mmn
c285f80b18
Merge branch 'cas-user-whitelist' into 'nightly'
...
Added CAS user whitelist feature
See merge request gnu/gnu-social!142
2017-12-17 17:38:21 +00:00
mmn
1e1543dd72
Test if $casSettings['user_whitelist'] is an array - and then perform in_array(...) instead of just checking if it's != null.
2017-12-17 17:37:24 +00:00
mmn
9c0c8a19dd
Merge branch 'backupaccount-xml' into 'nightly'
...
backupaccount: Don't print page HTML in XML export
See merge request gnu/gnu-social!144
2017-12-17 17:35:22 +00:00
Mikael Nordfeldth
ec98fd0c43
Merge remote-tracking branch 'gnuio/master' into nightly
2017-12-17 18:32:23 +01:00
mmn
67a9c0415c
Merge branch 'cache-html-sanitizer' into 'master'
...
set the html sanitizer cache directory to ['cache']['dir'] from the config file;
See merge request gnu/gnu-social!156
2017-12-17 17:25:46 +00:00
mmn
a1ea335140
Merge branch 'cli-install' into 'master'
...
Don't write the config file when --skip-config flag is given to the installer.
See merge request gnu/gnu-social!155
2017-12-17 17:25:21 +00:00
mmn
69bb81556f
Merge branch 'master' into 'master'
...
Allow GNU social master code to receive Mastodon boosts
See merge request gnu/gnu-social!153
2017-12-17 17:24:53 +00:00
nee
0b9a2fdf3a
allow the cmd installer to load the config file from '/etc/gnusocial/config.d/'.$_server.'.php'
...
using the commandline argument as $_server (passed through lib/common.php to lib/gnusocial.php)
2017-12-17 17:59:46 +01:00
nee
3b5fabbe97
set the html sanitizer cache directory to ['cache']['dir'] from the config file;
2017-12-06 01:55:54 +01:00
nee
fdd3d63098
Don't write the config file when --skip-config flag is given to the installer.
...
* scripts/installer_cli.php: Read the arguments list before checking
if the config file is writeable.
2017-11-26 22:14:30 +01:00
vinz
5af96d3ec7
fixed hard coded twitter char limit
2017-11-08 22:50:00 +01:00
vinz
250221ff7f
Merge remote-tracking branch 'upstream/nightly' into nightly
2017-11-08 22:47:23 +01:00
Mikael Nordfeldth
ec504ec4df
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2017-09-10 14:06:03 +02:00
Mikael Nordfeldth
96ce758c05
Trying to debug some stuff regarding oEmbed
2017-09-10 14:04:12 +02:00
Mikael Nordfeldth
a45d9471ed
If $_REQUEST is empty, array_merge == null.
2017-09-10 14:02:16 +02:00
Sebastian
a6e33bdd6a
Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly commit: c741d1a52a
)
2017-08-25 11:35:02 +00:00
Mikael Nordfeldth
10f17efc4f
disabling auto-backlog-importer on subscribe
2017-08-23 18:09:49 +02:00
mmn
d9fbc17f77
Merge branch 'nightly' into 'nightly'
...
Added base64 encoding to get RMQ to work
See merge request !151
2017-08-23 15:28:08 +00:00
mmn
50f9f23ff1
Merge branch 'xmpphp-fix' into 'master'
...
Fix PHP incompatibilities in XMPPHP
See merge request !152
2017-08-23 15:27:34 +00:00
mmn
34bd4e6441
Merge branch 'patch-1' into 'master'
...
Update INSTALL
See merge request !150
2017-08-23 15:27:22 +00:00
Mikael Nordfeldth
0b75eaed92
missing argument for sprintf
2017-08-22 19:19:17 +02:00
Florian Schmaus
e615032331
Fix PHP incompatibilities in XMPPHP
...
This fixes the following to errors in XMPPHP:
Stack trace:
0 [internal function]: XMPPHP_XMLStream->endXML(Resource id 150, 'STREAM:FEATURES')
1 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php(420): xml_parse(Resource id 150, '<?xml version='...', false)
2 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php(471): XMPPHP_XMLStream->__process()
3 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(165): XMPPHP_XMLStream->processUntil(Array)
4 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(49): XmppManager->connect()
5 /var/vhosts/example.org/lib/iomaster.php(248): XmppManager->start(Object(ImMaster))
6 /var/vhosts/example.org/lib/iomaster.php(111): IoMaster->start()
7 /var/vhosts/example.org/scripts/imdaemon.php(58): IoMaster->service()
8 /var/vhosts/example.org/lib/spawningdaemon.php(189): ImDaemon->runThread()
in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php on line 567
PHP Fatal error: Uncaught Error: Function name must be a string in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php:567
PHP Fatal error: Uncaught Error: Call to undefined function split() in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php:266
Stack trace:
0 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMPP.php(129): XMPPHP_XMLStream->addXPathHandler('{http://etherx ....', 'features_handle...')
1 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(145): XMPPHP_XMPP->__construct('geekplace.eu', 5222, 'gnusocial', 'U^k&l5fV53duGy', 'gnusocial', 'geekplace.eu', false, NULL)
2 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(49): XmppManager->connect()
3 /var/vhosts/example.org/lib/iomaster.php(248): XmppManager->start(Object(ImMaster))
4 /var/vhosts/example.org/lib/iomaster.php(111): IoMaster->start()
5 /var/vhosts/example.org/scripts/imdaemon.php(58): IoMaster->service()
6 /var/vhosts/example.org/lib/spawningdaemon.php(189): ImDaemon->runThread()
7 /var/vhosts/example.org/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(1 in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php on line 266
2017-08-19 17:55:47 +02:00
Mikael Nordfeldth
de8aed6a28
Added bullet point to README
2017-08-12 09:50:39 +02:00
Mikael Nordfeldth
d61375cb7f
Group autocompletion now fills in hostname part
2017-08-10 12:41:47 +02:00
Mikael Nordfeldth
4c8a8848ed
Groups can now be server-specific with !osm@gnusocial.de vs. !osm@sn.jonkman.ca
2017-08-10 12:30:11 +02:00
Mikael Nordfeldth
00cbc852b0
Make use of variable preMention signal method
2017-08-10 11:33:18 +02:00
Mikael Nordfeldth
8dd06cd8d8
Harmonize webfinger formatting and enable variable pre-mention character
2017-08-10 11:25:04 +02:00
Mikael Nordfeldth
20801a32f7
Logging term used HubSub instead of WebSub.
2017-08-07 00:19:12 +02:00
Mikael Nordfeldth
090f4a9474
Mastodon replies 201 Created for salmon slaps.
2017-08-05 16:21:34 +02:00
Mikael Nordfeldth
0ef483fb4a
preamble with newline for AtomPub output etc.
2017-08-05 10:42:38 +02:00
Mikael Nordfeldth
945920f24d
Mimetype was not recognized if longer than bare mime
2017-08-05 09:50:42 +02:00
Mikael Nordfeldth
6938d26524
List the thread config value in lib/default.php
2017-08-03 09:53:00 +02:00
Mikael Nordfeldth
dea9f43d85
Updated some PHP-related info in INSTALL
2017-08-03 09:52:04 +02:00
abjectio
90e93b9656
Added base64 encoding to get RMQ to work
2017-07-28 12:42:21 +02:00
Mikael Nordfeldth
586aaa596e
Quote URL on dupe search and better logging on upgrade
2017-07-27 19:39:55 +02:00
Mikael Nordfeldth
457d32e273
Merge branch 'takeshitakenji/gnu-social-twitter-repeat-config' into mmn_fixes
2017-07-11 22:09:12 +02:00
mmn
dd8e17a387
Merge branch 'profile' into 'nightly'
...
Change Profile->getUser() to match the current user
See merge request !129
2017-07-11 20:05:47 +00:00
mmn
93524c4be3
Merge branch 'doc-backup-restore-def-vals' into 'nightly'
...
doc: Update 'backup', 'restore' default values
See merge request !143
2017-07-11 20:01:28 +00:00
mmn
924bcd93e5
Merge branch 'notice_id-xml' into 'nightly'
...
Use the statusnet namespace for notice_id in atom feed
See merge request !136
2017-07-11 20:01:01 +00:00
Mikael Nordfeldth
aa004d03aa
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-07-11 21:59:49 +02:00
mmn
7785219234
Merge branch 'fix-doc-twitterapi' into 'master'
...
Fix a link of doc/twitterapi
See merge request !149
2017-07-11 19:58:48 +00:00
Mikael Nordfeldth
56e2b0007c
Issue #279 raises the point of missing newlines
2017-07-11 21:58:24 +02:00
Mikael Nordfeldth
a75b1df627
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-07-11 21:44:50 +02:00
mmn
e3cafc011e
Merge branch 'case-sensitive-openid' into 'master'
...
Fix OpenID discovery in pages using uppercase <HEAD> tag
Closes #60
See merge request !140
2017-07-11 19:41:33 +00:00
mmn
3b363d626d
Merge branch 'safe-gitignore' into 'master'
...
Ignore whole directory, not only inner contents
See merge request !145
2017-07-11 19:31:26 +00:00
mmn
d564e28f8e
Merge branch 'xmpp-fix-1' into 'nightly'
...
Fix 'from' address in the XMPP ping command
See merge request !141
2017-07-11 19:18:51 +00:00
Mikael Nordfeldth
9b19688d65
Another solution to merge request !146
2017-07-11 21:16:30 +02:00
Mikael Nordfeldth
e4d77cb9b2
Noone uses Facebook anymore.
2017-07-11 12:44:24 +02:00
Mikael Nordfeldth
05a9c11c47
Fixing HTTP_Request2_SocketWrapper so it times out
...
HTTP_Request2_SocketWrapper would never time out on an fgets() call as
discussed in issue #281 https://git.gnu.io/gnu/gnu-social/issues/281
I'm patching it here by setting the socket to non-blocking mode and
using stream_select to wait until the timeout. This patch or some
similar variant must be implemented in HTTP_Request2_SocketWrapper
to avoid the same issue for other users.
2017-07-11 12:04:09 +02:00
Mikael Nordfeldth
9919ccb8b5
HubSub now remembers recent failures and counts them
2017-07-10 20:28:45 +02:00
Mikael Nordfeldth
661930cbe6
oEmbed had bad variable reference in error message
2017-07-10 20:28:35 +02:00
Mikael Nordfeldth
6a2a54dcb5
Making upgrade.php somewhat more efficient by remember one-time-inits.
2017-07-10 20:27:37 +02:00
Mikael Nordfeldth
c9cfda5ef2
Bad constant (LOG_WARNING, not LOG_WARN)
2017-07-10 14:50:25 +02:00
Mikael Nordfeldth
4ba7c4a021
AuthCrypt README brought out of the stone age
2017-07-10 14:49:01 +02:00
Mikael Nordfeldth
74a60ab963
Rework the push mechanism a bit to a less DB dependant queue
2017-07-10 14:43:28 +02:00
Mikael Nordfeldth
3bc2454e91
Avoid excessive remote requests on oEmbed lookups
...
I noticed that each time a notice was accessed it'd do a remote lookup
with HEAD (and continue despite 404 etc.) and then another attempt to
download the resource. If this wasn't successful new attempts would be
made for each loading of the resource, which is extremely resource
intensive.
Whenever we can say "it's been n seconds since the last attempt" we
could probably enable this again - or just manually reload remote
thumbnails (as part of the StoreRemoteMedia plugin etc.)
2017-07-10 14:41:03 +02:00
Mikael Nordfeldth
a7df79ac07
Force arrays in constructors of ActivityStreamJSONDocument and JSONActivityCollection
...
Started using PHP7+ and it started complaining about count() being fed objects
that weren't "Countable". .)
2017-07-10 14:26:01 +02:00
Mikael Nordfeldth
31866be98b
Use intval on ini_get or we use a string for timeout
2017-07-10 14:10:32 +02:00
Mikael Nordfeldth
57e22d78e0
Patch DB before release, weird use of count()
2017-07-10 14:10:10 +02:00
Mikael Nordfeldth
a4a6a8469e
Updating HTMLPurifier to 4.9.3
...
Source: https://htmlpurifier.org/download
Release date: 2017-06-19
2017-07-10 13:46:07 +02:00
Mikael Nordfeldth
3158f9c33a
Update PEAR DB to 1.9.2
...
Source: https://pear.php.net/package/DB
Release date: 2015-11-24
2017-07-10 13:34:47 +02:00
Mikael Nordfeldth
711f220397
Updating PEAR Net_URL2 to 2.1.2
...
Source: https://pear.php.net/package/Net_URL2
Release date: 2016-04-18
2017-07-10 13:29:31 +02:00
Mikael Nordfeldth
a223273544
Update PEAR DB_DataObject to 1.11.5
...
Source: https://pear.php.net/package/DB_DataObject
Release date: 2015-11-10
2017-07-10 13:25:04 +02:00
Mikael Nordfeldth
61876ed232
PEAR Net_SMTP updated to 1.8.0
...
Source: https://pear.php.net/package/Net_SMTP
Release date: 2017-04-06
2017-07-10 12:53:13 +02:00
Mikael Nordfeldth
f025671b8a
PEAR Net_Socket updated to 1.2.2
...
Source: https://pear.php.net/package/Net_Socket
Release date: 2017-04-13
2017-07-09 23:09:03 +02:00
Mikael Nordfeldth
489099ca91
change default timeout setting for HTTPClient
2017-07-09 22:49:49 +02:00
Mikael Nordfeldth
08b4b73c67
Updating HTTP_Request2 to 2.3.0
...
Source: https://pear.php.net/package/HTTP_Request2
Release date: 2016-02-13 15:24 UTC
2017-07-09 22:17:52 +02:00
Mikael Nordfeldth
fb492d4bb2
Remove debug call and change how connect_timeout is set
2017-07-09 20:34:44 +02:00
Mikael Nordfeldth
f0480c34d7
Configure a default timeout for HTTP connections at 60s
...
No requests we do externally should ever take more than 60 seconds. This
could probably be changed for downloading video or whatever for any cache
plugins that want to store data locally, but in general I think even 60s
is way longer than I expect any outgoing requests should take.
This affects everything using HTTPClient, our helper class, and thus all
hub pings, subscription requests, etc. etc.
The value, afaik, includes connect_timeout and if it takes 10 seconds to
establish a connection only 50 seconds is available to transfer data.
2017-07-09 20:28:22 +02:00
Mikael Nordfeldth
3395f6081c
Endless loop nesting on ensureHub failure now fixed
...
Essentially I was missing a negation on a test if we were in rediscovery mode.
2017-06-22 14:37:32 +02:00
Mikael Nordfeldth
c9a9a8bc58
Fulltext indexes are supported in InnoDB since MariaDB 10.0.15
2017-06-22 01:37:43 +02:00
Mikael Nordfeldth
fa44e0c06e
set a 'rediscovered' parameter to avoid nesting into an ensureHub loop forever
2017-06-22 00:30:38 +02:00
Danial Behzadi
16e7b5af12
Update INSTALL
...
Step 4 of `Getting it up and running` is not applicable in newer versions.
2017-06-18 12:42:14 +00:00
Mikael Nordfeldth
5265c48d04
GNU social avatar by moshpirit / Alberto
2017-05-30 21:37:53 +02:00
MIYAGI Hikaru
b9a4053eec
fix a link of doc/twitterapi
2017-05-30 07:23:36 +09:00
Mikael Nordfeldth
1517deeeb6
Since ActivityContext::CONVERSATION changed to 'conversation' instead of 'ostatus:conversation' we need to add it ourselves
...
the xmlstringerthinger doesn't really use namespaces afaik
2017-05-06 15:27:25 +02:00
Mikael Nordfeldth
0dd68d11cb
What just happened? Not sure if me or git caused duplicate code.
2017-05-06 14:48:04 +02:00
Mikael Nordfeldth
4f37c564a5
Merge branch 'master' into mmn_fixes
2017-05-06 14:40:06 +02:00
Mikael Nordfeldth
5ad2f2873e
...and make sure we checkschema on Notice_prefs on upgrade...
2017-05-06 14:38:50 +02:00
Mikael Nordfeldth
966971bd12
Revert some of 8a4bec811b
...
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
2017-05-06 14:38:48 +02:00
Mikael Nordfeldth
7767c57087
Notice_prefs now available (I just copied Profile_prefs)
2017-05-06 14:38:47 +02:00
Mikael Nordfeldth
ba4a84602a
Output proper HTML and XML headers for single Atom entry
...
RFC5023 <https://tools.ietf.org/html/rfc5023 > specifies that the
content type parameter 'type=entry' should be used to clarify data.
2017-05-06 14:38:46 +02:00
Mikael Nordfeldth
d115f9dd1b
Output selfLink from notice asActivity[Object]
2017-05-06 14:38:45 +02:00
Mikael Nordfeldth
1ccb934541
Return false immediately if $url is empty for common_valid_http_url
2017-05-06 14:38:43 +02:00
Mikael Nordfeldth
434956fc75
Notices start saving selfLink from activities/objects
2017-05-06 14:38:42 +02:00
Mikael Nordfeldth
7da925ca70
Handle selfLink in ActivityObject
2017-05-06 14:38:41 +02:00
Mikael Nordfeldth
3a7d8efc57
...and make sure we checkschema on Notice_prefs on upgrade...
2017-05-06 13:54:42 +02:00
Mikael Nordfeldth
286b1e0ab7
Revert some of 8a4bec811b
...
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
2017-05-06 13:24:11 +02:00
Mikael Nordfeldth
2cbef2b10f
Notice_prefs now available (I just copied Profile_prefs)
2017-05-06 13:22:10 +02:00
Mikael Nordfeldth
d88e9ffd33
Output proper HTML and XML headers for single Atom entry
...
RFC5023 <https://tools.ietf.org/html/rfc5023 > specifies that the
content type parameter 'type=entry' should be used to clarify data.
2017-05-06 12:38:34 +02:00
Mikael Nordfeldth
7c829852b8
Output selfLink from notice asActivity[Object]
2017-05-06 12:26:54 +02:00
Mikael Nordfeldth
709f1bbd75
Return false immediately if $url is empty for common_valid_http_url
2017-05-06 12:25:27 +02:00
Mikael Nordfeldth
8a4bec811b
Notices start saving selfLink from activities/objects
2017-05-06 12:15:54 +02:00
Mikael Nordfeldth
7889b21e7b
Handle selfLink in ActivityObject
2017-05-06 11:57:16 +02:00
Mikael Nordfeldth
000af6d9ee
default to #addtag on !group mention
2017-05-02 21:21:53 +02:00
Mikael Nordfeldth
07458e5375
Fixed the parsing of ostatus:conversation etc.
...
Conversation will now start storing remote URL
The namespace features don't work the way they were written for here
so I fixed that, making the ostatus: namespace properly looked up and
then the homegrown getLink function looks for what is back-compat with
StatusNet etc. if I remember correctly.
2017-05-02 18:58:22 +02:00
Mikael Nordfeldth
e8eb9f9614
Less raw database dumps in debug please
2017-05-02 09:18:43 +02:00
Mikael Nordfeldth
e9ab06b59e
Fix issues with non-subscribed Ostatus_profiles
2017-05-02 09:14:30 +02:00
Mikael Nordfeldth
979c525124
I like to throw exceptions instead of using if statements.
2017-05-02 09:07:39 +02:00
Mikael Nordfeldth
06b25f384a
File_redirection->getFile could never get the file anyway if $redir->file_id was empty...
2017-05-02 09:07:00 +02:00
Mikael Nordfeldth
5af5bb2a32
Show WebSub state on remote user profiles
2017-05-01 21:18:04 +02:00
Mikael Nordfeldth
caa5fb75b3
Introduce neat function getFeedSub() on Ostatus_profile
2017-05-01 21:17:22 +02:00
Mikael Nordfeldth
f4d6710a0f
Change mentions of PuSH to WebSub
...
WebSub is probably finalised before we make a release anyway. Here is
the official spec: https://www.w3.org/TR/websub/
Mostly just comments that have been changed. Some references to PuSH <0.4
are left because they actually refer to PuSH 0.3 and that's not WebSub...
The only actual code change that might affect anything is FeedSub->isPuSH()
but the only official plugin using that call was FeedPoller anyway...
2017-05-01 11:04:27 +02:00
Mikael Nordfeldth
b3da5bdaa3
Debugging log fix.
2017-05-01 10:36:55 +02:00
Mikael Nordfeldth
f6d4d00e02
I think this will stop my daemons from endlessly looping
...
I got this which ate all my memory:
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
...ad nauseam.
2017-05-01 10:27:21 +02:00
Mikael Nordfeldth
37c97ac8fc
Message to end-user on why FeedSub failed.
2017-05-01 07:40:16 +02:00
Mikael Nordfeldth
5ac20a4d30
Clearing cache showed my layout fail!
2017-05-01 07:39:56 +02:00
Mikael Nordfeldth
45203a4992
Makes the attachment button stay within the form area...
2017-04-30 20:32:10 +02:00
Mikael Nordfeldth
bb72229d6a
Show what you're replying to in the web interface
2017-04-30 10:37:21 +02:00
Mikael Nordfeldth
16880de8f6
ensureHub on 422 status code (Superfeedr error on non-existing topic)
2017-04-30 10:29:16 +02:00
Mikael Nordfeldth
b20b9727cf
More debugging info for FeedSub PuSH self-healing
2017-04-30 09:46:15 +02:00
Mikael Nordfeldth
e21043e81c
syntax fix (throw _new_ *Exception)
2017-04-30 09:33:06 +02:00
Mikael Nordfeldth
1ecf709918
Make sure we don't receiveFeed() in the case of that exception
2017-04-30 09:31:16 +02:00
Mikael Nordfeldth
5288a6f9e2
Update huburi for FeedSub if PuSH signature is invalid
...
This because some remote server might have used third party PuSH hubs
but switch and we don't know about it.
Possible risks here are of course MITM that could force us to rediscover
PuSH hubs from a feed they control, but that currently feels ... meh.
2017-04-30 09:20:08 +02:00
Mikael Nordfeldth
c505652c15
Confirm_address::getByAddress not getAddress
...
Also fixed the error handling to match the function call.
2017-04-29 14:48:46 +02:00
Takuma YOSHIOKA
2ebdac70da
Ignore whole directory, not only inner contents
...
`dir/*` style let git ignore files and directories in `dir/`, but not
`dir/` itself.
This cause `git clean -df` to remove `dir/` **with its contents**!
To prevent `git clean -df` to remove data directories (`avatar/`, `file/`,
etc), use `dir/` (or `dir`) style in gitignore.
2017-04-29 14:22:36 +09:00
Mikael Nordfeldth
853b016a42
Separate ensureHub into function in FeedSub
2017-04-27 09:24:12 +02:00
Mikael Nordfeldth
598b51eb7a
Escaping a URI in common_debug call
2017-04-27 09:23:45 +02:00
Mikael Nordfeldth
985f3b44b7
LRDD blacklisted URL test
2017-04-26 23:24:42 +02:00
Mikael Nordfeldth
ea6d8b8bde
LRDD blacklisted URL test
2017-04-26 23:21:13 +02:00
Mikael Nordfeldth
e1df763940
Test URLs against blacklist also on PuSH subscriptions.
2017-04-26 22:43:16 +02:00
Mikael Nordfeldth
bb76af4f65
Test URLs against blacklist also on PuSH subscriptions.
2017-04-26 22:41:59 +02:00
Mikael Nordfeldth
839b3e7392
allowed_schemes was misspelled
2017-04-26 22:12:06 +02:00
Mikael Nordfeldth
adfd76f44b
allowed_schemes was misspelled
2017-04-26 22:11:28 +02:00
Mikael Nordfeldth
df7ff4ef1a
Moving form to its own file as we do nowadays
2017-04-25 21:13:29 +02:00
Mikael Nordfeldth
c71600c144
Modernise some function calls etc, to newer GNU social standards
2017-04-25 21:03:43 +02:00
Mikael Nordfeldth
5f24fc0986
Blacklist plugin enabled by default (bug fixes will come)
2017-04-25 20:43:31 +02:00
Mikael Nordfeldth
a53284fe4f
Use getByID nistead of getKV for Feedsub in PushInQueueHandler
2017-04-25 20:42:10 +02:00
Chimo
4ef05e35b8
backupaccount: Don't print page HTML in XML export
...
The current Atom/XML account backup contains the backupaccount HTML at the end
of the downloaded file. This change makes it so that only the XML is downloaded
by terminating the script before the HTML is served.
2017-04-23 19:03:40 +00:00
Mikael Nordfeldth
956cfaf844
Try https first on URL mention lookup
2017-04-22 12:29:53 +02:00
Mikael Nordfeldth
95f991cff3
Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com
2017-04-22 12:12:27 +02:00
Mikael Nordfeldth
c4541d8f5b
Merge branch 'master' into nightly
...
No change should be made, just making sure...
2017-04-22 11:47:29 +02:00
Mikael Nordfeldth
ee29b23bd4
Fix URL mention regular expression FOR REALZ
2017-04-22 11:46:43 +02:00
Mikael Nordfeldth
69e944e21a
Fix URL mention regular expression FOR REALZ
2017-04-22 11:45:24 +02:00
Mikael Nordfeldth
4827655632
Fix URL mention regular expression in OStatusPlugin
2017-04-22 11:26:23 +02:00
Mikael Nordfeldth
5e7a7701b9
Domain name regular expression into lib/framework.php
...
cherry-pick-merge
2017-04-22 11:26:13 +02:00
Mikael Nordfeldth
eefbfe746f
Split up OStatusPlugin preg functions so they can be reused
...
cherry-pick-merge
2017-04-22 11:24:55 +02:00
Mikael Nordfeldth
45dfa9f215
A bit more instructive debugging
2017-04-22 11:23:43 +02:00
Mikael Nordfeldth
64b72a3c9b
New domain regexp for WebFinger matching.
2017-04-22 11:23:41 +02:00
Mikael Nordfeldth
51e5cc2ac8
Fix URL mention regular expression in OStatusPlugin
2017-04-22 11:15:55 +02:00
Mikael Nordfeldth
2fc4b174c1
Domain name regular expression into lib/framework.php
2017-04-22 11:07:38 +02:00
Mikael Nordfeldth
bd6c93a811
Split up OStatusPlugin preg functions so they can be reused
2017-04-22 11:02:41 +02:00
Mikael Nordfeldth
54971842f2
A bit more instructive debugging
2017-04-22 10:55:24 +02:00
Mikael Nordfeldth
0fd83f0028
New domain regexp for WebFinger matching.
2017-04-22 10:51:03 +02:00
Mikael Nordfeldth
e98bceec10
Import backlog on new subscription.
...
Danger is when importing a new feed that may be maliciously crafted
to contain a zillion entries.
2017-04-21 09:31:27 +02:00
Mikael Nordfeldth
f51cb6fca9
Split OStatusPlugin FeedSub receive into two parts
...
FeedSub::receive now only handles the PuSH verification
FeedSub::receiveFeed is protected and only parses+imports feed XML
2017-04-21 08:13:39 +02:00
Chimo
63f9af307d
doc: Update 'backup', 'restore' default values
2017-04-19 22:56:45 -04:00
Mikael Nordfeldth
3453521c9c
Less frightening interface on remote subscription
...
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
2017-04-19 11:44:07 +02:00
Mikael Nordfeldth
2744bdcdb7
Empty resource would throw exception
...
The "+ Remote" link on your profile page broke because of exception.
2017-04-19 11:43:58 +02:00
Mikael Nordfeldth
e87115d462
Less frightening interface on remote subscription
...
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
2017-04-19 11:41:34 +02:00
Mikael Nordfeldth
548e59fc99
Empty resource would throw exception
...
The "+ Remote" link on your profile page broke because of exception.
2017-04-19 11:37:43 +02:00
Andrew Engelbrecht
6ca5bb4d41
Added CAS user whitelist feature
...
This feature filters users who may log in via CAS. This is useful when
both CAS and password authentication is enabled and there is a mismatch
between some GNU social account names and CAS user names. This prevents
CAS users from logging in as someone else on GNU social.
2017-04-17 12:41:49 -04:00
Mikael Nordfeldth
2a8ab1c6ca
Merge branch 'master' into nightly
2017-04-16 11:04:58 +02:00
Mikael Nordfeldth
57f78dc61c
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2017-04-16 11:04:17 +02:00
Mikael Nordfeldth
388655d19b
Handle normalized acct: URIs in ostatussub
...
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
2017-04-16 11:03:14 +02:00
Mikael Nordfeldth
35b0a9e3ae
Handle normalized acct: URIs in ostatussub
...
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
2017-04-16 11:01:16 +02:00
Andrew Engelbrecht
25b4996145
Fix 'from' address in the XMPP ping command
...
This commit corrects a syntax error that caused the XMPP daemon to
reatedly reconnect to the remote server.
2017-04-13 12:35:49 -04:00
Mikael Nordfeldth
75079320d1
Give remote Atom URL for remote profile view
2017-04-09 12:13:53 +02:00
Sandro Santilli
aac6a21c4e
Fix OpenID discovery in pages using uppercase <HEAD> tag
...
Closes #60
Equivalent change was proposed upstream:
https://github.com/openid/php-openid/pull/134
2017-04-08 09:13:59 +02:00
Mikael Nordfeldth
d2c7c83615
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2017-04-06 13:34:57 +02:00
Mikael Nordfeldth
1b3021d61c
E-mail should contain full acct uri too (FancyName)
2017-04-06 13:23:33 +02:00
mmn
550606177b
Merge branch 'fixtests' into 'nightly'
...
Got Old Unittests Passing
See merge request !131
2017-04-06 10:23:12 +00:00
mmn
24910f2363
Merge branch 'fix-twitterbridge' into 'nightly'
...
Fix TwitterBridge imported notices not displaying in timeline
See merge request !130
2017-04-06 10:20:41 +00:00
Mikael Nordfeldth
2ce2201496
Show full acct uri as html title on link mouseover
2017-04-06 11:45:58 +02:00
mmn
9e89a177c7
Merge branch 'genericons-fix' into 'nightly'
...
Fix paths for Genericons font
See merge request !132
2017-04-06 09:23:51 +00:00
mmn
bd24724560
Merge branch 'atom-post' into 'nightly'
...
Add support for Atom entry when posting status
See merge request !135
2017-04-06 09:20:38 +00:00
Mikael Nordfeldth
bc1f8b5db6
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
...
strk's OpenID fix
2017-04-06 11:15:37 +02:00
mmn
6679ecb9d7
Merge branch 'fix-openid-removal' into 'master'
...
Fix OpenID URI removal
See merge request !138
2017-04-06 09:12:35 +00:00
mmn
f85aa41adc
Merge branch 'normalized_openid' into 'master'
...
Normalize OpenID URI before checking it for validity
Closes #251
See merge request !139
2017-04-06 09:12:17 +00:00
mmn
f2d2f7ebe2
Merge branch 'newListItem-signatures' into 'nightly'
...
Add var type to newListItem() parameter
See merge request !137
2017-04-06 09:11:52 +00:00
Mikael Nordfeldth
b54c7f720c
add configuration option that was documented in CONFIGURE
2017-04-02 11:05:22 +02:00
Sandro Santilli
1ef206467f
Fix OpenID URI removal
...
See #252
2017-03-18 13:33:07 +01:00
Sandro Santilli
85a407e7b0
Normalize OpenID URI before checking it for validity
...
Fixes #251
2017-03-18 10:56:01 +01:00
Mikael Nordfeldth
8c7c6f3047
Merge branch 'master' into nightly
2017-03-18 01:37:04 +01:00
Mikael Nordfeldth
9fead39f36
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2017-03-18 01:36:35 +01:00
Mikael Nordfeldth
948744538c
StoreRemoteMedia now checks remote filesize before downloading
2017-03-18 01:35:45 +01:00
Chimo
dc7c64592b
Add var type to newListItem() parameter
...
Fixes some "Declaration of $child::method should be compatible with
$parent::method" warnings.
2017-03-16 22:57:16 -04:00
Thomas Karpiniec
47cd054976
Use the statusnet namespace for notice_id
2017-02-04 21:59:30 +11:00
Thomas Karpiniec
132b932ff3
Add support for Atom entry when posting status
2017-02-04 20:04:02 +11:00
Mikael Nordfeldth
8b8e2825e3
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-01-15 21:25:06 +01:00
mmn
7dcb229ab3
Merge branch 'improve-status-length-calculation' into 'master'
...
improve status length calculation for messages forwarded to Twitter
See merge request !133
2017-01-15 20:23:41 +00:00
Mikael Nordfeldth
63322989c2
if zip is fine then application/x-bzip2 is too
2017-01-11 23:30:06 +01:00
Bjoern Schiessle
f198d5d110
improve status length calculation, each link is exactly 23 characters long at Twitter
2016-12-14 15:54:02 +01:00
Roger Braun
bdac23564a
Test for correct post object in retweets.
2016-12-05 18:26:46 +01:00
Roger Braun
c741d1a52a
Make Mastodon retweets parse correctly.
2016-12-05 18:24:55 +01:00
Roger Braun
8c6c6039a2
Test for correct post object in retweets.
2016-12-05 18:24:13 +01:00
Bhuvan Krishna
099dafc4c2
Fix paths for Genericons font
...
Fix incorrect paths for Genericons font files.
Remove embedded woff in favor of file on disk. This make it easier when
packaging for distributions if the distribution wants to package
Genericons package separately.
2016-11-17 18:02:11 +05:30
Mikael Nordfeldth
c5a4921176
log with var_export (our shorthand _ve())
2016-10-23 12:14:02 +02:00
Mikael Nordfeldth
6bfc97c95d
Less spammy logs
2016-10-22 23:24:13 +02:00
Mikael Nordfeldth
6ebc5f0bff
some debugging calls and make sure $hints['feedurl'] gets set with $feeduri in case that variable is used.
2016-10-22 23:08:44 +02:00
Mikael Nordfeldth
8614cd77eb
A good plugin but not necessary as default.
2016-10-22 19:27:07 +02:00
Mikael Nordfeldth
1c5e364880
Merge branch 'master' into mmn_fixes
2016-09-13 11:26:03 +02:00
Mikael Nordfeldth
7d67eefdf5
wrong variable was referenced
2016-09-13 11:24:57 +02:00
vinzv
3e5ae79c5a
Added chimo's plugins
2016-09-02 11:37:53 +02:00
vinzv
25e4b9a35e
Add Qvitter and QvitterPlus
2016-09-02 11:34:50 +02:00
vinzv
a1c7c0ab01
Adding SensitiveContent Plugin for nsfw filtering
2016-09-02 11:34:29 +02:00
vinzv
845a0f8e2d
Merge branch 'nightly' of https://git.gnu.io/gnu/gnu-social into nightly
...
Conflicts:
lib/util.php
2016-09-02 11:32:49 +02:00
vinzv
19df5c9b50
Merge remote-tracking branch 'upstream/master' into nightly
...
Conflicts:
lib/util.php
2016-09-02 11:26:57 +02:00
Mikael Nordfeldth
3b9b9331a8
parenthesis fail
2016-09-02 01:07:09 +02:00
Mikael Nordfeldth
500ff6be1a
Merge branch 'master' into mmn_fixes
2016-09-02 01:04:54 +02:00
Mikael Nordfeldth
18670c69b2
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2016-09-02 01:01:57 +02:00
Mikael Nordfeldth
a7043bf7cc
Split up source and source_link. Never trust HTML!
...
https://community.highlandarrow.com/notice/269667
or alternatively: https://social.umeahackerspace.se/conversation/495655
2016-09-02 01:00:52 +02:00
Mikael Nordfeldth
15ab9ff9e3
common_to_alphanumeric added, filtering Notice->source in classic layout
2016-09-02 01:00:08 +02:00
Mikael Nordfeldth
59b93b23e2
Split up source and source_link. Never trust HTML!
...
https://community.highlandarrow.com/notice/269667
or alternatively: https://social.umeahackerspace.se/conversation/495655
2016-09-02 00:55:46 +02:00
Mikael Nordfeldth
e6b3924a5d
common_to_alphanumeric added, filtering Notice->source in classic layout
2016-09-02 00:08:17 +02:00
www-data
160df2f2d1
Merge remote-tracking branch 'upstream/master' into nightly
2016-09-01 17:23:31 +02:00
Mikael Nordfeldth
af6a3aa456
Make Group actions ManagedAction so groupbyid works
2016-08-28 09:34:31 +02:00
Mikael Nordfeldth
cb5bcf4937
bad log constant
2016-08-28 00:16:31 +02:00
Mikael Nordfeldth
a32bfe7d87
TagCloud turned into plugin (performance issues on large installs)
2016-08-27 15:24:25 +02:00
Mikael Nordfeldth
5a008c3738
Don't redirect to tag cloud on /tag URL
...
(this is probably just while we pluginify TagCloud)
2016-08-27 15:06:12 +02:00
Mikael Nordfeldth
27022e7c39
Typing on WebFinger onRouterInitialized handler argument URLMapper $m
2016-08-27 15:00:29 +02:00
Mikael Nordfeldth
3b046ee49d
Shorthand function to check if notice has been repeated.
2016-08-27 14:42:28 +02:00
Mikael Nordfeldth
f7030b538f
neo-quitter display fixes for attachment since layout change
2016-08-25 11:26:09 +02:00
Mikael Nordfeldth
d13883ec86
Margin for oEmbed article etc.
2016-08-21 18:23:16 +02:00
Mikael Nordfeldth
6bc0030699
articles accidentally got aligned to center
2016-08-21 09:36:22 +02:00
Mikael Nordfeldth
1d791f81fa
Attachment styling
2016-08-21 09:31:26 +02:00
Mikael Nordfeldth
4314a286e3
Less convoluted attachmentlistitem function calls
2016-08-21 09:25:16 +02:00
Mikael Nordfeldth
fc06c599bc
dbqueuemanager should ignore on no-result-exceptions
2016-08-16 20:27:41 +02:00
Nym Coy
1f866fcaed
ActivityGenerationTests.php fails but doesn't crash anymore.
...
Fixed an error where a profile id was reused after another profile was
deleted, and the new profile still had the deleted role.
Fixed ActivityGenerationTests::testNoticeInfoRepeated() which was passing
User instead of Profile, throwing errors.
tests/ActivityGenerationTests.php now passes.
CommandInterpreterTest now passes.
Moved JidValidateTest to XmppValidateTest, since Jabber functionality has
moved to the XmppPlugin. Tests work but don't pass, but they are at least
skipped if XmppPlugin is not active.
LocationTest passes, but the tests are not very good. Lots of nulls.
MediaFileTest passes.
NicknameTest passes. Nickname::normalize() now throws an error if the
nickname is too long with underscores.
UserFeedParseTest passes.
URLDetectionTest passes if $config['linkify']['(bare_ipv4|bare_ipv6|
bare_domains)'] are false. Untested otherwise.
Fixed Nickname::isBlacklisted() so it does not throw an error if
$config['nickname]['blacklist'] not set.
2016-08-14 11:55:49 +05:30
www-data
12cd0af111
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-08-13 22:16:35 +02:00
Nym Coy
1f5e306760
Set object_type to ActivityObject::NOTE on notices imported from Twitter. Previously was unset which caused ActivityHandler to throw an error during onStartOpenNoticeListItemElement() and the notices would not display in the timeline.
2016-08-09 21:02:57 +05:30
Mikael Nordfeldth
557e430c7d
Reference local URLs in addressee list on notices.
2016-08-06 18:32:14 +02:00
www-data
c946ddc275
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-27 12:38:19 +02:00
Mikael Nordfeldth
563b3b1328
Using File->setTitle in oEmbed
2016-07-23 21:01:28 +02:00
Mikael Nordfeldth
d84bf83419
Created function File->setTitle(str)
2016-07-23 21:00:57 +02:00
Mikael Nordfeldth
1b3d583418
file_quota for OembedPlugin too
...
Don't download huge files that might kill memory limits.
2016-07-21 03:19:05 +02:00
Mikael Nordfeldth
809e2f6d07
Use File->getID()
2016-07-21 01:38:48 +02:00
Mikael Nordfeldth
e52275e37f
Some comparisons were incorrect (text/html;charset=utf-8 etc.)
2016-07-21 01:38:31 +02:00
Mikael Nordfeldth
1981cb7662
Select the first generated thumbnail, which should be the proper size
...
...most of the time. If all works well.
2016-07-21 00:38:16 +02:00
Mikael Nordfeldth
d5c733919b
Because the other part of the code works now, this is unnecessary
2016-07-21 00:34:40 +02:00
Mikael Nordfeldth
d230d332cf
return false to exit event, imgPath holds the path
2016-07-21 00:27:22 +02:00
Mikael Nordfeldth
13e1f0a561
VideoThumbnails shouldn't have to recreate the thumbnail all the time
2016-07-21 00:24:05 +02:00
Mikael Nordfeldth
e8e996182f
Delete file on class destruction or we do it too quickly
...
Source image was removed when trying to use it for resizeTo
2016-07-21 00:23:27 +02:00
Mikael Nordfeldth
fc440ba7e7
Easier debugging of VideoThumbnails plugin
2016-07-20 22:51:38 +02:00
www-data
883ef2414f
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-15 17:18:45 +02:00
Mikael Nordfeldth
46c227bf3a
FileNotFoundException is more proper here
2016-07-15 13:19:16 +02:00
Mikael Nordfeldth
36cfe9f857
Delete successfully generated thumbnail (temporary sources) too.
2016-07-15 12:52:20 +02:00
Mikael Nordfeldth
1d53e7060a
Changed ShowfavoritesAction to use Action functions for profiles
2016-07-07 11:11:20 +02:00
Mikael Nordfeldth
6332a4d800
Handle FileNotStoredLocallyException in attachmentlistitem
2016-07-07 00:45:31 +02:00
Mikael Nordfeldth
f02d32b718
Reworked File->getUrl to throw exception
...
In case you require a local URL and one can't be generated, throw
FileNotStoredLocallyException(File $file)
2016-07-07 00:44:50 +02:00
Mikael Nordfeldth
4a3ed7d0ae
I don't know why we would set the mimetype as title here
2016-07-07 00:43:51 +02:00
Mikael Nordfeldth
71afb5be75
If the file is text/plain, see if we accept the extension
2016-07-06 09:34:09 +02:00
Mikael Nordfeldth
4117118e23
More specific exceptions for mimetype/extension issues.
2016-07-06 09:14:59 +02:00
Mikael Nordfeldth
b4a0bff740
Some mimetype madness!
2016-07-06 08:59:16 +02:00
www-data
14ac6e665c
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-04 23:37:45 +02:00
Martin Lyth
b0204023c0
Fix the case of a call to sameAs()
2016-07-02 17:43:47 -04:00
Martin Lyth
c9afdae01c
Check if we're the current user before retrieving
2016-07-02 17:02:37 -04:00
Martin Lyth
a62755182c
Test user equality better in Profile->getUser()
2016-07-02 15:45:42 -04:00
Mikael Nordfeldth
3987cad9b7
Use delivered content-type to parse XML_XRD
...
In issue #205 we saw data coming in with an additional line-break before
the JSON data which fuzzed the auto-detection in XML_XRD (which assumed
a { as the first character). If we use the Content-type header from HTTP
we can avoid that issue.
2016-07-02 13:44:25 +02:00
Mikael Nordfeldth
cfd9aee57b
Better logging for issue #205
2016-07-02 13:32:23 +02:00
Martin Lyth
d7a29be3ac
Change Profile->getUser() to match the current user
...
Profile->getUser() gets the User independently from common_current_user.
This means that changes to one does not affect the other, even if they
are the same user.
This changes that, so that getUser() returns common_current_user() if
they are both the same user.
This is done to fix a bug in the user profile settings, where changes in
the language and timezone are applied to the return value of
Profile->getUser() but not propagated to common_cur_user(), which causes
the profile settings to display incorrect information until the page is
refreshed.
2016-06-30 18:24:58 -04:00
Mikael Nordfeldth
a833eaa651
Make all hash algorithms available (but whitelist by default)
...
sha1 is whitelisted only because StatusNet requires it.
2016-06-28 11:54:39 +02:00
Mikael Nordfeldth
3166a04cef
actually respond with the error message in text on Salmon calls
2016-06-25 20:50:00 +02:00
Mikael Nordfeldth
bf4acc21be
A bunch of GIFs were >5MiB!
2016-06-25 20:37:00 +02:00
Mikael Nordfeldth
ad7ebd1a8c
Even more phpseclib update related stuff.
2016-06-25 20:34:28 +02:00
Mikael Nordfeldth
d10ce6ac7c
Give Webfinger response to group queries
2016-06-25 20:13:19 +02:00
Mikael Nordfeldth
3d6e25ee5f
We have to create and populate the Notice_location table before constraint checking foreign keys.
2016-06-25 13:01:56 +02:00
Mikael Nordfeldth
d0c26fb1a4
URIFIX in Ostatus_profile, handle missing feedsub
2016-06-25 11:59:31 +02:00
Mikael Nordfeldth
f93f02f424
Managed_DataObject now has getByUri()
2016-06-25 11:59:06 +02:00
Mikael Nordfeldth
42a62da764
getByUri shorthand function for Managed_DataObject (with uri)
2016-06-25 11:52:17 +02:00
Mikael Nordfeldth
7978cd6d59
s/EmptyIdException/EmptyPkeyValueException/
2016-06-25 11:50:59 +02:00
www-data
8470a55a41
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-24 16:47:57 +02:00
Mikael Nordfeldth
d7a4098b56
Use a separate max download limit for remote files than file_quota too
2016-06-24 16:07:57 +02:00
Mikael Nordfeldth
af23c9f7cd
StoreRemoteMedia now checks remote filesize before downloading
2016-06-24 15:56:14 +02:00
Mikael Nordfeldth
1dfac3ad63
Allow getting filesize by function
2016-06-24 15:53:23 +02:00
Mikael Nordfeldth
f1e3314bb7
StoreRemoteMedia avoids too large files
2016-06-24 15:47:02 +02:00
Mikael Nordfeldth
0adb7af9a0
Allow a quickHead request, will only return headers
2016-06-24 15:43:20 +02:00
Mikael Nordfeldth
c19f87f867
fixes issue #189 with a script lacking exception handling
2016-06-24 15:19:24 +02:00
Mikael Nordfeldth
da365be5a2
ParagonIE\ConstantTime required PHP7, going to v1.x branch
2016-06-24 14:49:52 +02:00
Mikael Nordfeldth
39e8c13afb
Properly parse incoming bookmarks
2016-06-24 13:51:40 +02:00
Mikael Nordfeldth
a4051945fd
Handle exception from Magic Envelope toXML function
2016-06-23 23:27:18 +02:00
Mikael Nordfeldth
6dcb293ba0
Unnecessarily verbose code
2016-06-23 23:03:58 +02:00
www-data
b83ff3f924
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-23 01:33:15 +02:00
Mikael Nordfeldth
09412ac813
PrimaryNoticeList so we get InfiniteScroll on profile pages
2016-06-21 15:55:49 +02:00
www-data
1d39c9d66a
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-21 13:36:41 +02:00
Mikael Nordfeldth
16f4583498
throw ClientException instead of clientError
2016-06-19 03:38:00 +02:00
Mikael Nordfeldth
2726478467
Bump Diaspora plugin version because of phpseclib fix
2016-06-19 03:25:03 +02:00
Mikael Nordfeldth
bac95913e8
phpseclib defaults to OAEP but we want PKCS1 in D*
2016-06-19 03:23:26 +02:00
Mikael Nordfeldth
ed97b88b04
Err, don't need that comment.
2016-06-19 02:27:50 +02:00
Mikael Nordfeldth
76114e2748
Missed some phpseclib stuff in DiasporaPlugin
2016-06-19 02:26:44 +02:00
Mikael Nordfeldth
d00f19663b
bump to beta5 since phpseclib update (which might cause some issues still)
2016-06-18 00:05:54 +02:00
Mikael Nordfeldth
47aabf4fda
Let's just put the namespaced phpseclib in extlib instead of plugins/OStatus/extlib
2016-06-18 00:00:32 +02:00
Mikael Nordfeldth
d4216d09c6
extlib required by phpseclib (ParagonIE/ConstantTime)
2016-06-17 23:58:49 +02:00
Mikael Nordfeldth
5bfd9dbaa7
repost_of -> repeat_of, also trying with isset()
2016-06-17 23:53:05 +02:00
Mikael Nordfeldth
3a8ce99a9d
Magicsig call for phpseclib\Math\BigInteger fixed
2016-06-17 23:47:00 +02:00
Mikael Nordfeldth
1839082f95
OStatus Magicsig adaptations to new phpseclib
...
Some constants have changed and the way to call RSA->sign(...) too.
2016-06-17 23:43:24 +02:00
Mikael Nordfeldth
d8af92bda2
Diaspora phpseclib update
2016-06-17 23:42:50 +02:00
Mikael Nordfeldth
09ef0c1f33
bump Linkback plugin thanks to awesome singpolyma
2016-06-17 23:22:44 +02:00
Mikael Nordfeldth
a1d064129a
Handle namespaces for new phpseclib
2016-06-17 23:21:34 +02:00
Mikael Nordfeldth
28ca5d90d9
phpseclib updated, some new features that we won't use
2016-06-17 22:44:12 +02:00
mmn
a6390007b7
Merge branch 'avatar-folder-perms' into 'nightly'
...
Display error if wrong perms on 'avatar' dir
If the 'avatar' folder isn't writeable, don't let users try to
upload/delete one (and fail). Instead, print an error message about
the misconfigured folder permission.
Ref. #196
See merge request !126
2016-06-17 16:33:20 -04:00
mmn
2e8a5aeb23
Merge branch 'tom/noreferrer' into 'nightly'
...
Use noreferrer when linkifying attachments and allow this value in purifier
If you click on a link in your main timeline this effectively identifies you to the site that you visited via the Referer header. (Who goes around reading other people's /user/all, honestly?)
Annoyingly our notice content is already HTML. Rather than attempt to parse and modify the tags in flight, this modification takes the simpler approach of adding the noreferrer tag to inline links by default when notices are composed.
See merge request !127
2016-06-17 16:32:39 -04:00
mmn
48efdc3593
Merge branch 'check-connection-on-install' into 'master'
...
Check DB connection before any possible use
This is to avoid an exception when enabling 'pgsql' backend
See merge request !121
2016-06-17 16:30:25 -04:00
mmn
005b4c8dd1
Merge branch 'strict-warnings' into 'nightly'
...
Fix some strict warnings (Action::prepare, Action::handle)
I know MR with changes to a bunch of files aren't great practice, but I figured since all the changes are one-liners it might not be a huge deal.
Related to #190
See merge request !123
2016-06-17 16:29:47 -04:00
mmn
d66b495ba8
Merge branch 'notice-location' into 'nightly'
...
Re-enable notice locations
Removed a stray 'return' statement.
See merge request !125
2016-06-17 16:28:56 -04:00
mmn
cb8bf360c4
Merge branch 'site-notice' into 'nightly'
...
Site Notice: common_purify instead of HTMLPurifier
So that we can use our custom settings (e.g: extra URI schemes) in the
site notice textbox.
Ref. #170
See merge request !124
2016-06-17 16:28:01 -04:00
mmn
d4295cfb25
Merge branch 'webmention-rocks' into 'nightly'
...
webmention.rocks
I have improved the webmention handling so that all but two of the webmention.rocks compliance tests pass now. Also improved parsing of time/authors on incoming webmentions.
See merge request !128
2016-06-17 16:26:21 -04:00
Mikael Nordfeldth
5e131aed80
Apparently medium.com uses @ frequently i URLs
...
and we skipped them because we assumed they were urlencoded when copied.
2016-06-17 11:20:36 +02:00
Stephen Paul Weber
97243c8a91
Allow 201 as well, because spec says so
2016-06-10 21:13:10 +00:00
Stephen Paul Weber
274e394d8e
Pass all but two webmention.rocks tests
2016-06-10 21:03:16 +00:00
Stephen Paul Weber
1e9077f529
Set avatar where available
2016-06-10 21:02:50 +00:00
Stephen Paul Weber
6861d2f3a1
Get avatar out of entry properly
2016-06-10 21:02:34 +00:00
Stephen Paul Weber
624584f9df
Need to strtotime before we can format the date
2016-06-10 21:02:08 +00:00
Stephen Paul Weber
4f3a031786
Use strpos check properly
2016-06-10 21:01:53 +00:00
Stephen Paul Weber
e96d7d48f5
400 code needs ClientException
2016-06-10 21:01:23 +00:00
Stephen Paul Weber
83e7ade714
When there is no useful title, class="p-name e-content"
2016-06-10 21:00:48 +00:00
Stephen Paul Weber
47e541eaec
Allow getting notice title without implying one
...
Sometimes I just want explicit titles, and not the generated "blah posted on date" text
2016-06-10 21:00:01 +00:00
Thomas Karpiniec
c1537a1e82
Use noreferrer when linkifying attachments and allow this value in purifier
2016-06-09 19:56:36 +10:00
Chimo
c81322d51a
WIP: Display error if wrong perms on 'avatar' dir
...
If the 'avatar' folder isn't writeable, don't let users try to
upload/delete one (and fail). Instead, print an error message about
the misconfigured folder permission.
Ref. #196
2016-06-04 11:08:32 -04:00
Chimo
d02c75d019
Re-enable notice locations
...
Removed a stray 'return' statement.
2016-06-01 21:56:42 -04:00
Chimo
e98d5d0c0c
Site Notice: common_purify instead of HTMLPurifier
...
So that we can use our custom settings (e.g: extra URI schemes) in the
site notice textbox.
Ref. #170
2016-06-01 03:54:28 +00:00
Chimo
9de79f0a36
Update prepare() method on Action subclasses.
...
Fixes handle()-related strict warnings such as "Strict Standards:
Declaration of AdminPanelAction::prepare() should be compatible with
Action::prepare(array $args = Array)
Ref. #190
2016-06-01 02:26:44 +00:00
Chimo
ba2975aac8
Update handle() method on Action subclasses.
...
Fixes handle()-related strict warnings such as "Strict Standards:
Declaration of AdminPanelAction::handle() should be compatible with
Action::handle()"
Ref. #190
2016-06-01 02:26:44 +00:00
Sandro Santilli
3138fa0b40
Check DB connection before any possible use
2016-05-24 16:49:50 +02:00
www-data
9545219a23
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-05-17 14:00:39 +02:00
Mikael Nordfeldth
bd306bdb9f
Add /download action for attachments
2016-05-09 22:08:36 +02:00
Mikael Nordfeldth
bc70ec1263
Don't warp attachment page thumbnails
2016-05-04 11:59:52 +02:00
Mikael Nordfeldth
3a6733dc98
2-frame GIF animations weren't recognised as animated
2016-05-04 11:57:55 +02:00
Mikael Nordfeldth
6d6db77f06
Documentation update in File class file
2016-05-04 11:44:14 +02:00
Mikael Nordfeldth
a5a96dd857
Misplaced break/continue statements.
2016-05-04 11:44:00 +02:00
Mikael Nordfeldth
87dd0fbdb6
UseFileAsThumbnailException uses direct File object now
2016-05-04 11:34:50 +02:00
www-data
6a95a0cecb
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-05-01 21:44:34 +02:00
Mikael Nordfeldth
60130633f0
Linkback references to unset indexes + spelling error
2016-05-01 11:36:07 +02:00
Mikael Nordfeldth
7aa9a69c2f
Link to attachment page instead of big-ass image
2016-05-01 11:35:51 +02:00
www-data
ede6dcd4ac
Merge remote-tracking branch 'upstream/master' into nightly
2016-04-27 15:16:26 +02:00
Mikael Nordfeldth
e4f688fcfd
naughty extlib fix (PHP7)
...
The explode function didn't return empty elements (which split did)
2016-04-26 02:57:14 +02:00
Mikael Nordfeldth
3e9b0d6018
split is gone, use explode. PHP7 extlib fix
2016-04-26 02:41:56 +02:00
Mikael Nordfeldth
af28160679
Naughty fix for extlib XMPPHP (PHP7)
...
I shouldn't fix extlibs, but here goes anyway. I will see if there's
an upstream library we can track which has fixed this themselves.
2016-04-26 02:41:04 +02:00
Mikael Nordfeldth
58274c99d4
Some PHP7 related package names
2016-04-26 01:50:40 +02:00
Mikael Nordfeldth
9b613029e6
Merge branch 'master' into mmn_fixes
2016-04-18 16:10:50 +02:00
Mikael Nordfeldth
844fe3924e
put local id, href and such in ostatus:conversation element
2016-04-18 16:09:36 +02:00
Mikael Nordfeldth
0959efd7be
Use constant for ATTN_PUBLIC (public collection)
2016-04-18 15:56:52 +02:00
Mikael Nordfeldth
ce65fe96ad
Oembed bugs with thumbnail generation.
2016-04-18 15:33:20 +02:00
Mikael Nordfeldth
5ccf3ed714
function declaration to match parent
2016-04-18 15:21:05 +02:00
Mikael Nordfeldth
c48508d590
use getByID (also bad variable reference)
2016-04-18 15:08:47 +02:00
Mikael Nordfeldth
107f612384
strict type comparison
2016-04-18 15:04:03 +02:00
Mikael Nordfeldth
4645033b98
"In conversation" text in noticelistitem
2016-04-08 13:44:22 +02:00
Mikael Nordfeldth
6d33c003fc
Maybe stop deleteRelated from failing on constraint checking
2016-04-04 12:04:20 +02:00
Mikael Nordfeldth
b1de90fe08
Send thr:in-reply-to as well, for clarity...
2016-04-01 23:21:57 +02:00
Mikael Nordfeldth
922b65d231
More debugging in Salmon since we get situations which can't find inReplyToID
2016-04-01 23:10:34 +02:00
Mikael Nordfeldth
547f92de07
Don't fail deleteRelated on NoProfileException
2016-04-01 06:51:19 +02:00
Mikael Nordfeldth
195285ac2f
Fix constraint checking and only run it if not already constrained
2016-04-01 06:24:11 +02:00
Mikael Nordfeldth
558cbe5b6d
Merge branch 'constraint_check_notice_table' into mmn_fixes
2016-04-01 06:14:47 +02:00
Mikael Nordfeldth
44ea8aa681
Make sure $_SERVER['HTTP_REFERER'] isset when testing value
2016-03-31 20:51:50 +02:00
Mikael Nordfeldth
8de3469957
Constraint check Notice table, need to get foreign key array!
2016-03-31 17:57:01 +02:00
Mikael Nordfeldth
299949b156
fix/legacy_http for WebFinger + some minor fixes
...
Now won't match possibly maliciously named remote profile URLs
(where the profile URL could be a notice URL for example, which
would mean the response would be incorrect)
When looking up remote entities, we should _only_ use the stored URI,
but that's for the future to do...
2016-03-30 01:32:11 +02:00
Mikael Nordfeldth
df3bcbb6cb
Possibly replace weirdly capitalized htTPs: too
2016-03-30 01:31:17 +02:00
Mikael Nordfeldth
0177c8f1cf
Use join instead of exists in SQL
2016-03-29 14:36:27 +02:00
Mikael Nordfeldth
4ea79bc396
I was too quick to save that file (File::getByUrl takes 1 arg)
2016-03-29 14:33:40 +02:00
Mikael Nordfeldth
2f91cb0df7
We should assume all verbs and such are their full URIs in our db
2016-03-29 12:57:52 +02:00
Mikael Nordfeldth
cb212ba41c
Gah, bad syntax
2016-03-29 12:55:50 +02:00
Mikael Nordfeldth
72cafe03e9
Index object_type too...
2016-03-29 12:48:25 +02:00
Mikael Nordfeldth
f8765c6166
Upgrade script for Bookmark uses joins instead of exists (performance++)
2016-03-29 12:48:00 +02:00
Mikael Nordfeldth
dcffe5d992
Forgotten File::getByUrl conversations (performance++)
2016-03-29 12:13:53 +02:00
Mikael Nordfeldth
4e2be07234
Better indexing for Notice (performance++)
2016-03-29 12:13:33 +02:00
Mikael Nordfeldth
23bb45b845
Upgrade info from Bookmark plugin
2016-03-29 12:13:23 +02:00
Mikael Nordfeldth
d4041a4a1f
a little bit more explicit logging
2016-03-28 16:41:29 +02:00
Mikael Nordfeldth
16517f019a
Embarrasing copy-paste gone too fast
2016-03-28 16:25:29 +02:00
Mikael Nordfeldth
88e2f739a9
DOMElement not DOMDocument
2016-03-28 16:23:15 +02:00
Mikael Nordfeldth
7bef2ad4cc
Update Profile Data script fixes, might work for groups too now
2016-03-28 16:19:47 +02:00
Mikael Nordfeldth
a93c69d150
OStatus update profile data script fixes
2016-03-28 15:42:41 +02:00
Mikael Nordfeldth
2e327dfcd7
Probably fixes issue with looping XMPP queue items
2016-03-28 11:33:52 +02:00
Mikael Nordfeldth
f134a423f6
rename config option site/logdebug to log/debugtrace
2016-03-27 16:36:58 +02:00
Mikael Nordfeldth
97f7e6632d
Embed attachments marked up as microformats2 (I think rather properly)
2016-03-27 16:21:43 +02:00
Mikael Nordfeldth
327b8c863e
Initial (not yet working) fetch remote plugin
2016-03-27 15:01:44 +02:00
Mikael Nordfeldth
97d177f42a
Matching inherited function definition
2016-03-27 15:01:08 +02:00
Mikael Nordfeldth
2d0153195e
Output proper remote info on WebFinger notice resources
2016-03-27 14:56:27 +02:00
Mikael Nordfeldth
7be4641040
Actually return an Ostatus_profile
2016-03-27 14:54:14 +02:00
Mikael Nordfeldth
4790db348d
FetchRemoteNotice event call in Notice (not effective yet)
2016-03-27 14:00:05 +02:00
Mikael Nordfeldth
4d382a59d0
Use HTTPClient instead of Yadis HTTPFetcher in Linkback plugin
2016-03-24 03:01:18 +01:00
Mikael Nordfeldth
9fa18fa366
HTTPClient::quickGet now supports headers as argument
...
They should be in a numeric array, already formatted as headers,
ready to go. (Header-Name: Content of the header)
2016-03-24 02:44:11 +01:00
Mikael Nordfeldth
be22886be8
Catch some exceptions in Linkback
2016-03-24 02:00:16 +01:00
Mikael Nordfeldth
49a91885c9
Strictify Notice->isPublic()
2016-03-24 01:54:33 +01:00
Mikael Nordfeldth
f522c08438
Stricter typing in Realtime plugin functions
2016-03-24 01:41:58 +01:00
Mikael Nordfeldth
6b4c331060
Attachment and file handling since we could get NULL instead of File
2016-03-23 17:53:38 +01:00
Mikael Nordfeldth
2759c3f0db
Debugging output in OStatus for easier reading+greping
2016-03-23 17:52:02 +01:00
Mikael Nordfeldth
e32f2b0a39
Not really necessary in practice but makes better queries
2016-03-23 17:51:13 +01:00
Mikael Nordfeldth
8c6d0759c7
If upgraded from http to https, keep hubsub->topic up to date too (thanks hannes2peer)
2016-03-23 15:37:55 +01:00
Mikael Nordfeldth
0767bf487e
Use the new onUpdateKeys in dataobject for tasks on-update of keys
...
sets the hashkey column of the row to sha1(topic + '|' + callback)
2016-03-23 15:22:34 +01:00
Mikael Nordfeldth
f83b81b8c4
Change config webfinger/http_alias to fix/legacy_http
...
Set $config['fix']['legacy_http'] to perform some actions that are
needed if your site used to be served over http but now has upgraded
to https!
2016-03-23 15:21:02 +01:00
Mikael Nordfeldth
250d99d997
Allow actions to be performed on updateWithKeys
...
Avoids overloading and lets dataobject classes use onUpdateKeys()
to do special stuff, like if a key is made up of a hash of other fields etc.
2016-03-23 15:19:50 +01:00
Mikael Nordfeldth
8933022edc
Forgot a microsummary route in the latest commit
2016-03-22 22:37:59 +01:00
Mikael Nordfeldth
dafe775ffa
Microsummaries had issues and were removed in Firefox 6.0 anyway
...
It is argued there are many better ways to get a "micro summary" of
a profile or site.
2016-03-22 22:31:01 +01:00
Mikael Nordfeldth
53c1750f0d
If the attachment is a photo, don't replace representation in oEmbed
2016-03-22 14:02:36 +01:00
Mikael Nordfeldth
f3f619cc41
entry attachment css
2016-03-22 00:03:22 +01:00
Mikael Nordfeldth
51840a6693
doActionPost for delete should use deleteAs
2016-03-21 18:07:29 +01:00
Mikael Nordfeldth
55544845db
Just some comment clarification
2016-03-21 17:50:06 +01:00
Mikael Nordfeldth
86ce93b376
Notice->deleteRelated should be called from delete()
2016-03-21 17:34:03 +01:00
Neil E. Hodges
39ebb64b85
Added proper enabling and disabling of sending RTs to Twitter.
2016-03-21 07:12:52 -07:00
Mikael Nordfeldth
14cb2d5398
Merge branch 'master' into mmn_fixes
2016-03-21 12:27:04 +01:00
Mikael Nordfeldth
afdd6d39ec
Some Google stuff that need to be there (or comments)
...
Note that these won't be shown to the enduser and will never be accessed automatically.
We should put the salmon-protocol stuff on ostatus.org
2016-03-21 12:25:04 +01:00
Mikael Nordfeldth
b4cbf620ab
woops, accidentally deleted updates-from rel on mass Google-deletion
2016-03-21 12:13:01 +01:00
Mikael Nordfeldth
1ebd4f342e
woops, accidentally deleted updates-from rel on mass Google-deletion
2016-03-21 12:12:24 +01:00
Mikael Nordfeldth
38f7deca78
Avoid "property of non-object" PHP notice.
2016-03-21 11:17:25 +01:00
Mikael Nordfeldth
51ef894a47
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-03-21 03:24:15 +01:00
Mikael Nordfeldth
1e89369ef8
geometa.js doesn't exist anymore
2016-03-21 03:23:39 +01:00
Mikael Nordfeldth
a2d8305e21
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-03-21 03:21:51 +01:00
mmn
9f84f63471
Merge branch 'new-avatar' into 'master'
...
Changed default avatar in neo-gnu for the more fun @mosphirit gnu.
For now I am going to propose only that change, the default avatar. In the future maybe we can use only one SVG instead multiple PNG but I want to do for now the less changes possible.
See merge request !116
2016-03-20 22:21:39 -04:00
Mikael Nordfeldth
241b965715
oEmbed CSS file
2016-03-21 03:12:24 +01:00
Mikael Nordfeldth
ae681b10e7
geometa.js doesn't exist anymore
2016-03-21 03:11:22 +01:00
Mikael Nordfeldth
980085a8a3
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
...
Conflicts:
plugins/Minify/extlib/minify/README.txt
plugins/Minify/extlib/minify/UPGRADING.txt
plugins/Minify/extlib/minify/min/README.txt
plugins/Minify/extlib/minify/min/builder/index.php
plugins/Minify/extlib/minify/min/lib/JSMin.php
plugins/Minify/extlib/minify/min/lib/Minify.php
plugins/Minify/extlib/minify/min/lib/Minify/CSS.php
plugins/Minify/extlib/minify/min/lib/Minify/CSS/Compressor.php
plugins/Minify/extlib/minify/min/lib/Minify/Controller/Page.php
plugins/Minify/extlib/minify/min/lib/Minify/Packer.php
plugins/Recaptcha/RecaptchaPlugin.php
2016-03-21 03:10:19 +01:00
mmn
43178dfe10
Merge branch 'bashrc/remove_google_references' into 'master'
...
Remove Google References
This removes most references to:
- Google Code
- Google Buzz
- Google Maps
- Google Gears
- General Google services promotion
There are still some remaining Google references, particularly a script within plugins/Minify. You might want to check that to see if it's really necessary and whether the javascript it points to is actually free software.
See merge request !117
2016-03-20 22:07:06 -04:00
Mikael Nordfeldth
50a10cf161
Minify is evil.
2016-03-21 03:02:22 +01:00
Mikael Nordfeldth
cd24f7d30a
Issue #166 - we test exif data below, no need for error output
2016-03-21 02:56:47 +01:00
Mikael Nordfeldth
78e23bd4ec
Fix issue #171 with latent htmLawed reference
2016-03-21 02:55:10 +01:00
Mikael Nordfeldth
b7c4c960e2
Don't use default_port for irc schemes
2016-03-21 02:48:37 +01:00
Mikael Nordfeldth
e64c3a1d87
irc and ircs schemes for HTMLPurifier
2016-03-21 02:46:28 +01:00
Mikael Nordfeldth
cdcf6cdb25
Hacky method to avoid cutting conversation "more" link out
2016-03-21 02:42:28 +01:00
Mikael Nordfeldth
aa3865c303
Split threaded notice list classes into own files.
2016-03-21 02:33:57 +01:00
Bob Mottram
11c57e7aee
Remove Google References
...
This removes most references to Google, with some
remaining since they may point to things which are still
relevant. References to Google Code, Google Buzz and
Google Maps have been removed
2016-03-20 13:06:58 +00:00
Carlos Sanmartín Bustos
2bb5c5806f
Changed default avatar in neo-gnu for the more fun @mosphirit gnu.
2016-03-19 12:53:59 +01:00
Mikael Nordfeldth
365f3d2aa5
Full-content oEmbed html doesn't take up all space (and renders properly)
2016-03-17 12:58:40 +01:00
Mikael Nordfeldth
102f7ab059
oEmbed neatifying (inspired by Qvitter)
2016-03-17 00:31:45 +01:00
Mikael Nordfeldth
99a2230fdb
h5 and h6 don't need margin-bottom methinks
2016-03-17 00:31:32 +01:00
Mikael Nordfeldth
bf7c035f99
only direct .inline-attachment children
2016-03-16 20:37:57 +01:00
Mikael Nordfeldth
5f5e53a8d5
Merge branch 'master' into mmn_fixes
2016-03-15 16:55:39 +01:00
Mikael Nordfeldth
f4833c6c91
More verbose salmon debugging
2016-03-15 16:53:19 +01:00
Mikael Nordfeldth
f32414dd93
Upgrading from 1.1.x would make uri fields have length=255
2016-03-15 16:52:57 +01:00
Mikael Nordfeldth
349e842078
UPDATE ActivityVerb
2016-03-14 15:26:03 +01:00
Mikael Nordfeldth
ca8f0f84c4
Woops, forgot to include this file!
2016-03-14 15:25:05 +01:00
Mikael Nordfeldth
0f5ebb6827
Redundant font definitions in CSS
2016-03-10 15:15:06 +01:00
Mikael Nordfeldth
5ca2a28246
Make oEmbed handle our http/https setting better.
2016-03-10 14:20:21 +01:00
Mikael Nordfeldth
566977c136
forgot 'new' after throw
2016-03-10 13:46:19 +01:00
Mikael Nordfeldth
15c16ac54e
Make sure File_thumbnail->getPath() doesn't throw NoResultException
2016-03-09 23:49:01 +01:00
Mikael Nordfeldth
bd75305560
Define-ify excluded end-characters of URL autolinking
2016-03-09 15:16:47 +01:00
Mikael Nordfeldth
c769924505
Reduce the number of allowed characters in auto-linking URLs.
2016-03-09 15:05:36 +01:00
Mikael Nordfeldth
a24c6fdb39
If our host matched in File lookup, it could throw exceptions on Router->map
2016-03-09 14:52:15 +01:00
Mikael Nordfeldth
d179afa303
Save allowed path/qstring/fragment characters in constants
2016-03-09 14:51:52 +01:00
Mikael Nordfeldth
723b49a22a
throw exception instead of clientError
2016-03-09 14:17:55 +01:00
Mikael Nordfeldth
e2c6f2f96f
Let's be consistent with URL verbs
2016-03-08 20:01:06 +01:00
Mikael Nordfeldth
e4310a57cd
Profile->noticeCount minor change
2016-03-08 20:00:58 +01:00
Mikael Nordfeldth
4c7436e328
Match empty on "" and not just NULL
2016-03-08 02:00:34 +01:00
Mikael Nordfeldth
4360c65ed9
Super special case where we should copy files instead of mv
2016-03-08 01:59:58 +01:00
Mikael Nordfeldth
3b1181dae6
Display locally stored remote GIFs as thumbnails
...
Many newspapers seem to use animated GIFs as catchy header images, which
we would fail to show from oEmbed/OpenGraph fetching since they would
want us to "use File as Thumbnail", but the only place the image filename
was stored was in File_thumbnail, for the thumbnail of that file_id which
had a URL set.
2016-03-08 01:36:24 +01:00
Mikael Nordfeldth
e43fe85454
Note that you should run upgrade procedure as the PHP user
2016-03-07 23:37:07 +01:00
Mikael Nordfeldth
cfc82591da
chmod 0775 directories we create
...
Security for the 'g+rx' should be handle by having the parent directory
inaccessible for global users, which is usually the case.
2016-03-07 23:23:32 +01:00
Mikael Nordfeldth
4e5c0e70a6
fillConfigVoids to set default value of empty config options
2016-03-07 22:55:52 +01:00
Mikael Nordfeldth
265fa12917
Relatively experimental change to store thumbnails in 'file/thumb/' (by default)
2016-03-07 22:33:34 +01:00
Mikael Nordfeldth
a3b265a477
Portability for filepath in File
2016-03-07 20:13:07 +01:00
Mikael Nordfeldth
41b64cb8a3
static function declaration
2016-03-07 20:09:15 +01:00
Mikael Nordfeldth
a0336ce48b
Unnecessary debug output
2016-03-06 18:15:36 +01:00
Mikael Nordfeldth
d9538183bd
Use information about activityschema public mention for Notice scope
2016-03-06 17:47:35 +01:00
Mikael Nordfeldth
158b323767
Declare AdminpanelAction::canAdmin as static, since that's how it's used.
2016-03-06 17:31:40 +01:00
Mikael Nordfeldth
6ec72b2978
Move mail_confirm_address out of mail.php
2016-03-06 17:27:40 +01:00
Mikael Nordfeldth
47ae21c08e
Don't resend confirm_address if profile is silenced
2016-03-06 16:45:29 +01:00
Mikael Nordfeldth
e9516ea4dd
Allow gopher: scheme in link href
2016-03-06 03:39:34 +01:00
mmn
0785e2910f
Merge branch 'no_sandboxed_repeats_branch' into 'nightly'
...
Don't include repeated notices from sandboxed users in the public timeline
See merge request !115
2016-03-05 08:08:42 -05:00
Mikael Nordfeldth
97ac722b24
Accessibility navigation improvement
2016-03-05 12:42:53 +01:00
Mikael Nordfeldth
7ca0ff9a19
MediaFile::fromUpload handles missing local file better
2016-03-05 12:05:12 +01:00
Mikael Nordfeldth
1db02d7f36
filename_base option isn't optimal
...
For different "download filenames" we should use some other method.
2016-03-05 11:59:46 +01:00
Mikael Nordfeldth
204a8f1fcc
PEAR Mail package updated to 1.3.0
...
1.3.0 (stable) was released on 2016-01-31
Source: https://pear.php.net/package/Mail
2016-03-05 02:54:13 +01:00
Mikael Nordfeldth
57d57b8d8f
Handle reuploads via filehandle better if original is missing
2016-03-05 01:26:34 +01:00
Mikael Nordfeldth
bf34f730dd
Use $this->scoped in AvatarsettingsAction
2016-03-05 01:03:48 +01:00
Mikael Nordfeldth
952f68fed5
File upload logging for dummies
2016-03-05 00:59:39 +01:00
hannes
7d4658643d
the repeated notice can be from a sandboxed user too
2016-03-04 16:53:57 -05:00
mmn
a9bdf761e8
Merge branch 'remote-media-blacklist-mk2' into 'nightly'
...
add server blacklist to StoreRemoteMedia plugin
allows server admins to block local storage of remote media from particular servers while still allowing a default policy of acceptance
See merge request !114
2016-03-03 20:17:23 +00:00
Saul St John
30e70c4697
update readme
2016-03-02 16:05:40 +00:00
Saul St John
43754c7f17
add blacklist to StoreRemoteMedia plugin
2016-03-02 15:41:17 +00:00
Mikael Nordfeldth
feb97cfc22
Resend confirm_address stuff, please read its NOTE first
2016-03-02 15:48:18 +01:00
Mikael Nordfeldth
a262c16f06
Catch exception on delete of Confirm_address in a plugin
2016-03-02 15:37:47 +01:00
Mikael Nordfeldth
175b7e8541
Refactor some ConfirmaddressAction stuff
2016-03-02 15:31:48 +01:00
Mikael Nordfeldth
867cb225b6
Merge branch 'master' into mmn_fixes
2016-03-02 14:39:19 +01:00
Mikael Nordfeldth
97d8e4571f
Fix a regression in 1f76c1e4
that stopped sending email confirmation on registration
2016-03-02 14:35:08 +01:00
Mikael Nordfeldth
dc1ceca86e
Some more Microformats2 data for notices and rendering
2016-03-02 13:29:54 +01:00
Mikael Nordfeldth
6529fdd28d
Proper Microformats2 h-entry p-name + u-uid markup
2016-03-02 13:10:02 +01:00
Mikael Nordfeldth
e4e0a39dad
Only OStatus distribute if profile hasRight to PUBLICNOTICE
2016-03-02 12:42:09 +01:00
Mikael Nordfeldth
53772ba305
Some rights one does not have if either sandboxed or silenced
2016-03-02 12:41:56 +01:00
Mikael Nordfeldth
d6598e790c
Introduce a ConfigException
2016-03-02 12:33:06 +01:00
Mikael Nordfeldth
9534969c05
Don't set is_local=LOCAL_NONPUBLIC on sandboxed user notices
...
Let's decide whether they are nonpublic by testing them when the notice
is shown instead.
2016-03-02 12:26:23 +01:00
Mikael Nordfeldth
a3b2118906
Make the public streams ModeratedNoticeStream (hide sandboxed users etc.)
...
Which streams should be put under ModeratedNoticeStream is probably open
to debate. But at least the public ones should hide the posts from users
that are sandboxed.
2016-03-02 11:50:50 +01:00
Mikael Nordfeldth
b4271a3533
Stricted typing + protected on FilteringNoticeStream->filter
2016-03-02 11:40:43 +01:00
Mikael Nordfeldth
79d68a52d0
No 'acct:' in FancyName please.
2016-03-02 10:49:33 +01:00
Mikael Nordfeldth
9a89990293
Some changes since getFancyName() is longer with full acct: URI
2016-03-02 00:13:28 +01:00
Mikael Nordfeldth
7ec69e4215
User->hasBlocked typing
2016-03-02 00:04:31 +01:00
Mikael Nordfeldth
99fbb181c1
Translation changes, use FancyName in email subject
2016-03-01 23:53:36 +01:00
Mikael Nordfeldth
4abb3f19bf
Make Profile->getFancyUrl() somewhat better on fallback
...
It tries to get a referential identifier apart from the fullname trying
with acct: URI, profile URL and lastly URI.
2016-03-01 23:48:32 +01:00
Mikael Nordfeldth
ddd60e7142
Make Profile->getFancyName() return including the acct URI
2016-03-01 23:37:38 +01:00
Mikael Nordfeldth
47f408ca7c
Strict typing for mail_notify_attn
2016-03-01 23:37:11 +01:00
Mikael Nordfeldth
e3431a2c91
Iterate through input=file attachments (not multi yet)
2016-03-01 18:20:50 +01:00
Mikael Nordfeldth
e41809af89
Nothing interesting was made in this commit.
2016-03-01 16:30:00 +01:00
Mikael Nordfeldth
a112e7f9a4
Use another method of detecting unspecified defaultImage size
2016-03-01 15:00:52 +01:00
Mikael Nordfeldth
63c087a255
Consistent behaviour for ScopingNoticeStream $scoped
...
We don't guess the current profile anymore if the value of the profile === -1
Also sets $this->scoped for all ScopingNoticeStream inheritors, which just
like in an Action can be null if we're not scoped in any way (logged in).
2016-03-01 14:51:47 +01:00
Mikael Nordfeldth
7862b853bf
Make javascript XHR timeout a variable.
...
SN.V.xhrTimeout = [time in milliseconds];
2016-03-01 13:10:18 +01:00
Mikael Nordfeldth
da34491c59
Woops, undefined $type there.
2016-02-28 20:50:45 +01:00
mmn
d1b294e1ac
Merge branch 'delete_group_logo' into 'nightly'
...
Now we can delete a group logo.
I added a function of deleting a group logo.
I'm not sure we should delete group's avatar through Avatar::deleteFromProfile like on line 426:
```php
Avatar::deleteFromProfile($this->group->getProfile());
```
See merge request !84
2016-02-28 18:45:31 +00:00
mmn
b9a11f8c21
Merge branch 'fix-author-fallback' into 'nightly'
...
Fix author fallback
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
See merge request !111
2016-02-28 18:42:36 +00:00
Mikael Nordfeldth
b8643f73b7
No need to set $threads = 0 on the line before it's set ;)
2016-02-28 19:40:16 +01:00
mmn
23651c6142
Merge branch 'nightly' into 'nightly'
...
Enable configuration option for number of threads used by queuedaemons.php
Could we change the script for queuedaemon.php to using a configuration setting if not arguments such as -t or --threads is set?
Example in configuration file:
```
$config['queue']['threads'] = 15; //Spawning 15 threads for handling the queue
```
See merge request !105
2016-02-28 18:36:54 +00:00
Mikael Nordfeldth
2696e13b19
Refactoring ApiStatusesDestroyAction
2016-02-28 19:35:03 +01:00
Mikael Nordfeldth
446c930823
Change to more recent code style in ApiStatusesDestroyAction
2016-02-28 19:23:13 +01:00
Mikael Nordfeldth
781209a23b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-02-28 19:19:46 +01:00
mmn
065f707bd7
Merge branch 'mods_can_delete_others_notices_branch' into 'nightly'
...
moderators can delete others' notices using the api
See merge request !112
2016-02-28 18:19:11 +00:00
Mikael Nordfeldth
6c43e9c2e0
Verify loaded config function, must be completed further.
2016-02-28 13:31:21 +01:00
Mikael Nordfeldth
747c91210f
HTMLPurifier cache settings, put stuff in subdir of get_sys_temp_dir()
2016-02-28 13:30:47 +01:00
Mikael Nordfeldth
cd978fa153
Edited the list of allowed rel values
2016-02-28 13:16:52 +01:00
abjectio
12ad588a9b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2016-02-27 20:37:03 +01:00
hannes
6a0007c410
moderators can delete others' notices using the api
2016-02-27 01:03:24 +00:00
Stephen Paul Weber
9dc4f13579
Fix author fallback
...
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
2016-02-26 22:06:04 +00:00
Mikael Nordfeldth
12f1707a74
Ostatus_source filled no purpose whatsoever
2016-02-26 22:37:26 +01:00
Mikael Nordfeldth
b4dc060d75
Don't auto-silence other users by IP by default
2016-02-26 16:10:03 +01:00
Mikael Nordfeldth
ba51a696d2
Slightly more correct log message in index.php
2016-02-26 14:53:12 +01:00
Mikael Nordfeldth
52a3764ae4
Resolve relative URLs (assuming URI.Base==notice URL)
...
The real way to do this would be to get the xml:base property from
the Atom feed but it's probably not there in any posts we see today.
2016-02-26 14:46:26 +01:00
Mikael Nordfeldth
1e6520fddd
Woops, forgot to skip the / in path
2016-02-26 14:13:46 +01:00
Mikael Nordfeldth
6a4470912f
Fiddling with merge request #98 to use internal routing functions
2016-02-26 14:10:32 +01:00
Mikael Nordfeldth
8356c2495c
Use mb_* and strict === comparison
2016-02-26 13:52:25 +01:00
mmn
722ff4d9c0
Merge branch 'foolproof_file_redirection_branch' into 'nightly'
...
Foolproof file redirection
This solves an issue when our internal /attachment/{file_id} links are shortened with an remote shorteners (which caused the /attachment/{file_id} links to be saved to the File table and a thumbnail of a thumbnail being generated)
See merge request !98
2016-02-26 12:49:10 +00:00
Mikael Nordfeldth
a3c5ef59d6
Fix merge #101 by replacing a non-working Yahoo! link with Wikipedia
...
The link was meant to describe robots.txt crawl-delay info
2016-02-26 13:41:14 +01:00
mmn
5227483855
Merge branch 'rm-short-urls-docs' into 'nightly'
...
CONFIGURE: Replace short urls with their target
Transparency and resilience against shorteners going away.
See merge request !101
2016-02-26 12:38:26 +00:00
Mikael Nordfeldth
21778d057e
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-02-26 13:37:32 +01:00
Mikael Nordfeldth
826503766e
Jean Lucas mentioned that PEAR::Net_Socket was outdated
...
Updated Net_Socket to 1.0.14 (stable) was released on 2013-05-24
https://pear.php.net/package/Net_Socket
2016-02-26 13:35:53 +01:00
Mikael Nordfeldth
1414abfe95
Jean Lucas mentioned PEAR::Net_SMTP was outdated
...
Net_SMTP updated to 1.7.1 (stable) was released on 2015-09-07
https://pear.php.net/package/Net_SMTP
2016-02-26 13:34:07 +01:00
mmn
dc51354316
Merge branch 'readme-plugins' into 'nightly'
...
Readme plugins
* Adds several plugin READMEs
They are pretty basic, but it's a start.
* Changes status.net/wiki URLs to git.gnu.io
The status.net wiki is dead.
See merge request !103
2016-02-26 12:32:42 +00:00
mmn
fae9e27365
Merge branch 'group-autocomplete' into 'nightly'
...
Fix !group autocomplete
"Call to undefined method User_group::getFullname"
See merge request !108
2016-02-26 12:30:19 +00:00
mmn
d500fb8598
Merge branch 'remove-openid' into 'nightly'
...
Fix: Cannot remove OpenID
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
See merge request !107
2016-02-26 12:30:01 +00:00
Mikael Nordfeldth
c58228195b
Make sure the saved Notice has an ID
2016-02-26 01:11:20 +01:00
Mikael Nordfeldth
519e3308ab
Use mb_strlen to see if something is an empty string
2016-02-26 01:04:59 +01:00
Mikael Nordfeldth
29662eef5e
Mentioning matches (@this too) now.
2016-02-26 00:08:51 +01:00
Mikael Nordfeldth
2730510393
User friendlieness in scripts/delete_notice.php
2016-02-26 00:06:04 +01:00
Mikael Nordfeldth
2669c51265
Allow sgf files if they're recognized in mime search
...
They are Go game files used on lamatriz.org. Note that my server
doesn't actually recognize these files and can identify the mime type,
but my browser did for some reason.
2016-02-26 00:05:07 +01:00
Mikael Nordfeldth
aeb2e282db
Commented on the mime extension matching regexp
2016-02-25 22:32:54 +01:00
Mikael Nordfeldth
4d17d95335
Try to get mime data before hashing (cpu intensive)
2016-02-25 22:31:45 +01:00
Mikael Nordfeldth
bac37d1714
syntax error
2016-02-25 22:17:44 +01:00
Mikael Nordfeldth
e6e1705852
Make uploads work properly if we accept _all_ attachment types
...
Also introduced $config['attachments']['extblacklist'] that can disable
certain file extensions (or rewrite them, for example php => phps)
2016-02-25 22:15:54 +01:00
Mikael Nordfeldth
28d9f82ab1
Merge branch 'master' into mmn_fixes
2016-02-25 20:13:39 +01:00
Mikael Nordfeldth
93f5043230
Merge branch 'master' into mmn_fixes
2016-02-25 19:47:51 +01:00
Mikael Nordfeldth
4239c952d2
$metadata->thumbnail_url is not guaranteed to be set
...
We should probably have a separate class for this, so we can more
easily combine different technologies similar to oEmbed/OpenGraph.
2016-02-25 19:46:17 +01:00
Mikael Nordfeldth
e69f878241
Notice getRendered() can now be called on uninserted notices
2016-02-25 15:48:37 +01:00
Mikael Nordfeldth
6d3aa3276a
socialfy-your-domain made people think you needed manual interaction
...
I don't know why, but people started following those instructions for no
apparent reason and it ended up causing a bunch of federation issues or
homegrown cron script messes.
Maybe changing the name to "another" instead of "your" domain will make
people stop doing stuff randomly.
2016-02-25 12:33:28 +01:00
Mikael Nordfeldth
e3e3a91734
Correct comment on Notice->conversation in table schema
2016-02-24 19:34:44 +01:00
Chimo
54da2526ed
Fix !group autocomplete
...
"Call to undefined method User_group::getFullname"
2016-02-24 13:00:15 -05:00
Chimo
99f2aba6e1
Fix: Cannot remove OpenID
...
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
2016-02-24 12:42:41 -05:00
Mikael Nordfeldth
128a00c4ab
Include feeds in Link HTTP headers, for easier discovery
2016-02-24 16:48:44 +01:00
Mikael Nordfeldth
1d0a448e07
Publish rel="me" in Link HTTP headers
2016-02-24 16:43:09 +01:00
Mikael Nordfeldth
731fd01139
Allow easy fetching of rel="me" values
2016-02-24 16:42:54 +01:00
Mikael Nordfeldth
3ef573f67c
Default to profile size in Avatar::defaultAvatar
2016-02-24 16:42:35 +01:00
abjectio
6bcfc73175
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2016-02-23 21:13:58 +01:00
hannes
501d081d3b
getKV doesn't throw exception
2016-02-16 19:16:05 +00:00
abjectio
70d85c58e2
Enable configuration option for number of queuedaemon threads
2016-02-11 00:24:06 +01:00
Chimo
a614205663
Add plugin READMEs
2016-02-08 17:48:37 +00:00
Chimo
2c5cba28b6
Change status.net/wiki URLs to git.gnu.io
2016-02-08 17:48:10 +00:00
Chimo
7aca4e7463
CONFIGURE: Replace short urls with their target
...
Transparency and resilience against shorteners going away.
2016-02-04 15:20:37 +00:00
hannes
f708a5b016
Never save our /attachment/{file_id} links as links in the file table, return the old file
2016-01-29 00:36:30 +00:00
hannes
efd2326a29
the last url in the redirection chain can actually also be a redirection (e.g. if it's one of our /attachment/{file_id} links)
2016-01-29 00:34:32 +00:00
Akio Nishimura
d13454fb84
Now we can delete a group logo.
2016-01-21 08:10:35 +09:00