]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
Mikael Nordfeldth [Fri, 15 Jul 2016 11:19:16 +0000 (13:19 +0200)]
FileNotFoundException is more proper here
Mikael Nordfeldth [Fri, 15 Jul 2016 10:52:01 +0000 (12:52 +0200)]
Delete successfully generated thumbnail (temporary sources) too.
Mikael Nordfeldth [Thu, 7 Jul 2016 09:11:20 +0000 (11:11 +0200)]
Changed ShowfavoritesAction to use Action functions for profiles
Mikael Nordfeldth [Wed, 6 Jul 2016 22:45:31 +0000 (00:45 +0200)]
Handle FileNotStoredLocallyException in attachmentlistitem
Mikael Nordfeldth [Wed, 6 Jul 2016 22:44:50 +0000 (00:44 +0200)]
Reworked File->getUrl to throw exception
In case you require a local URL and one can't be generated, throw
FileNotStoredLocallyException(File $file)
Mikael Nordfeldth [Wed, 6 Jul 2016 22:43:51 +0000 (00:43 +0200)]
I don't know why we would set the mimetype as title here
Mikael Nordfeldth [Wed, 6 Jul 2016 07:34:09 +0000 (09:34 +0200)]
If the file is text/plain, see if we accept the extension
Mikael Nordfeldth [Wed, 6 Jul 2016 07:14:59 +0000 (09:14 +0200)]
More specific exceptions for mimetype/extension issues.
Mikael Nordfeldth [Wed, 6 Jul 2016 06:59:16 +0000 (08:59 +0200)]
Some mimetype madness!
Mikael Nordfeldth [Sat, 2 Jul 2016 11:44:25 +0000 (13:44 +0200)]
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.
Mikael Nordfeldth [Sat, 2 Jul 2016 11:32:23 +0000 (13:32 +0200)]
Better logging for issue #205
Mikael Nordfeldth [Tue, 28 Jun 2016 09:51:11 +0000 (11:51 +0200)]
Make all hash algorithms available (but whitelist by default)
sha1 is whitelisted only because StatusNet requires it.
Mikael Nordfeldth [Sat, 25 Jun 2016 18:50:00 +0000 (20:50 +0200)]
actually respond with the error message in text on Salmon calls
Mikael Nordfeldth [Sat, 25 Jun 2016 18:37:00 +0000 (20:37 +0200)]
A bunch of GIFs were >5MiB!
Mikael Nordfeldth [Sat, 25 Jun 2016 18:34:28 +0000 (20:34 +0200)]
Even more phpseclib update related stuff.
Mikael Nordfeldth [Sat, 25 Jun 2016 18:13:19 +0000 (20:13 +0200)]
Give Webfinger response to group queries
Mikael Nordfeldth [Sat, 25 Jun 2016 11:01:56 +0000 (13:01 +0200)]
We have to create and populate the Notice_location table before constraint checking foreign keys.
Mikael Nordfeldth [Sat, 25 Jun 2016 09:59:31 +0000 (11:59 +0200)]
URIFIX in Ostatus_profile, handle missing feedsub
Mikael Nordfeldth [Sat, 25 Jun 2016 09:58:36 +0000 (11:58 +0200)]
Managed_DataObject now has getByUri()
Mikael Nordfeldth [Sat, 25 Jun 2016 09:52:17 +0000 (11:52 +0200)]
getByUri shorthand function for Managed_DataObject (with uri)
Mikael Nordfeldth [Sat, 25 Jun 2016 09:50:59 +0000 (11:50 +0200)]
s/EmptyIdException/EmptyPkeyValueException/
Mikael Nordfeldth [Fri, 24 Jun 2016 14:07:57 +0000 (16:07 +0200)]
Use a separate max download limit for remote files than file_quota too
Mikael Nordfeldth [Fri, 24 Jun 2016 13:56:14 +0000 (15:56 +0200)]
StoreRemoteMedia now checks remote filesize before downloading
Mikael Nordfeldth [Fri, 24 Jun 2016 13:53:23 +0000 (15:53 +0200)]
Allow getting filesize by function
Mikael Nordfeldth [Fri, 24 Jun 2016 13:47:02 +0000 (15:47 +0200)]
StoreRemoteMedia avoids too large files
Mikael Nordfeldth [Fri, 24 Jun 2016 13:43:20 +0000 (15:43 +0200)]
Allow a quickHead request, will only return headers
Mikael Nordfeldth [Fri, 24 Jun 2016 13:19:24 +0000 (15:19 +0200)]
fixes issue #189 with a script lacking exception handling
Mikael Nordfeldth [Fri, 24 Jun 2016 12:49:52 +0000 (14:49 +0200)]
ParagonIE\ConstantTime required PHP7, going to v1.x branch
Mikael Nordfeldth [Fri, 24 Jun 2016 11:51:40 +0000 (13:51 +0200)]
Properly parse incoming bookmarks
Mikael Nordfeldth [Thu, 23 Jun 2016 21:27:18 +0000 (23:27 +0200)]
Handle exception from Magic Envelope toXML function
Mikael Nordfeldth [Thu, 23 Jun 2016 21:03:58 +0000 (23:03 +0200)]
Unnecessarily verbose code
Mikael Nordfeldth [Tue, 21 Jun 2016 13:55:49 +0000 (15:55 +0200)]
PrimaryNoticeList so we get InfiniteScroll on profile pages
Mikael Nordfeldth [Sun, 19 Jun 2016 01:38:00 +0000 (03:38 +0200)]
throw ClientException instead of clientError
Mikael Nordfeldth [Sun, 19 Jun 2016 01:25:03 +0000 (03:25 +0200)]
Bump Diaspora plugin version because of phpseclib fix
Mikael Nordfeldth [Sun, 19 Jun 2016 01:23:26 +0000 (03:23 +0200)]
phpseclib defaults to OAEP but we want PKCS1 in D*
Mikael Nordfeldth [Sun, 19 Jun 2016 00:27:50 +0000 (02:27 +0200)]
Err, don't need that comment.
Mikael Nordfeldth [Sun, 19 Jun 2016 00:26:44 +0000 (02:26 +0200)]
Missed some phpseclib stuff in DiasporaPlugin
Mikael Nordfeldth [Fri, 17 Jun 2016 22:05:54 +0000 (00:05 +0200)]
bump to beta5 since phpseclib update (which might cause some issues still)
Mikael Nordfeldth [Fri, 17 Jun 2016 22:00:32 +0000 (00:00 +0200)]
Let's just put the namespaced phpseclib in extlib instead of plugins/OStatus/extlib
Mikael Nordfeldth [Fri, 17 Jun 2016 21:58:49 +0000 (23:58 +0200)]
extlib required by phpseclib (ParagonIE/ConstantTime)
Mikael Nordfeldth [Fri, 17 Jun 2016 21:53:05 +0000 (23:53 +0200)]
repost_of -> repeat_of, also trying with isset()
Mikael Nordfeldth [Fri, 17 Jun 2016 21:47:00 +0000 (23:47 +0200)]
Magicsig call for phpseclib\Math\BigInteger fixed
Mikael Nordfeldth [Fri, 17 Jun 2016 21:43:24 +0000 (23:43 +0200)]
OStatus Magicsig adaptations to new phpseclib
Some constants have changed and the way to call RSA->sign(...) too.
Mikael Nordfeldth [Fri, 17 Jun 2016 21:42:50 +0000 (23:42 +0200)]
Diaspora phpseclib update
Mikael Nordfeldth [Fri, 17 Jun 2016 21:22:44 +0000 (23:22 +0200)]
bump Linkback plugin thanks to awesome singpolyma
Mikael Nordfeldth [Fri, 17 Jun 2016 21:21:34 +0000 (23:21 +0200)]
Handle namespaces for new phpseclib
Mikael Nordfeldth [Fri, 17 Jun 2016 20:44:12 +0000 (22:44 +0200)]
phpseclib updated, some new features that we won't use
mmn [Fri, 17 Jun 2016 20:33:20 +0000 (16:33 -0400)]
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
mmn [Fri, 17 Jun 2016 20:32:39 +0000 (16:32 -0400)]
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
mmn [Fri, 17 Jun 2016 20:29:47 +0000 (16:29 -0400)]
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
mmn [Fri, 17 Jun 2016 20:28:56 +0000 (16:28 -0400)]
Merge branch 'notice-location' into 'nightly'
Re-enable notice locations
Removed a stray 'return' statement.
See merge request !125
mmn [Fri, 17 Jun 2016 20:28:01 +0000 (16:28 -0400)]
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
mmn [Fri, 17 Jun 2016 20:26:21 +0000 (16:26 -0400)]
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
Mikael Nordfeldth [Fri, 17 Jun 2016 09:20:36 +0000 (11:20 +0200)]
Apparently medium.com uses @ frequently i URLs
and we skipped them because we assumed they were urlencoded when copied.
Stephen Paul Weber [Fri, 10 Jun 2016 21:13:10 +0000 (21:13 +0000)]
Allow 201 as well, because spec says so
Stephen Paul Weber [Fri, 10 Jun 2016 21:03:16 +0000 (21:03 +0000)]
Pass all but two webmention.rocks tests
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:50 +0000 (21:02 +0000)]
Set avatar where available
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:34 +0000 (21:02 +0000)]
Get avatar out of entry properly
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:08 +0000 (21:02 +0000)]
Need to strtotime before we can format the date
Stephen Paul Weber [Fri, 10 Jun 2016 21:01:53 +0000 (21:01 +0000)]
Use strpos check properly
Stephen Paul Weber [Fri, 10 Jun 2016 21:01:23 +0000 (21:01 +0000)]
400 code needs ClientException
Stephen Paul Weber [Fri, 10 Jun 2016 21:00:48 +0000 (21:00 +0000)]
When there is no useful title, class="p-name e-content"
Stephen Paul Weber [Fri, 10 Jun 2016 21:00:01 +0000 (21:00 +0000)]
Allow getting notice title without implying one
Sometimes I just want explicit titles, and not the generated "blah posted on date" text
Thomas Karpiniec [Thu, 9 Jun 2016 09:56:36 +0000 (19:56 +1000)]
Use noreferrer when linkifying attachments and allow this value in purifier
Chimo [Sat, 4 Jun 2016 14:52:49 +0000 (14:52 +0000)]
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
Chimo [Thu, 2 Jun 2016 01:56:42 +0000 (21:56 -0400)]
Re-enable notice locations
Removed a stray 'return' statement.
Chimo [Wed, 1 Jun 2016 03:54:28 +0000 (03:54 +0000)]
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
Chimo [Wed, 1 Jun 2016 02:21:50 +0000 (02:21 +0000)]
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
Chimo [Wed, 1 Jun 2016 02:05:11 +0000 (02:05 +0000)]
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
Mikael Nordfeldth [Mon, 9 May 2016 20:08:36 +0000 (22:08 +0200)]
Add /download action for attachments
Mikael Nordfeldth [Wed, 4 May 2016 09:59:52 +0000 (11:59 +0200)]
Don't warp attachment page thumbnails
Mikael Nordfeldth [Wed, 4 May 2016 09:57:55 +0000 (11:57 +0200)]
2-frame GIF animations weren't recognised as animated
Mikael Nordfeldth [Wed, 4 May 2016 09:44:14 +0000 (11:44 +0200)]
Documentation update in File class file
Mikael Nordfeldth [Wed, 4 May 2016 09:44:00 +0000 (11:44 +0200)]
Misplaced break/continue statements.
Mikael Nordfeldth [Wed, 4 May 2016 09:34:50 +0000 (11:34 +0200)]
UseFileAsThumbnailException uses direct File object now
Mikael Nordfeldth [Sun, 1 May 2016 09:36:07 +0000 (11:36 +0200)]
Linkback references to unset indexes + spelling error
Mikael Nordfeldth [Sun, 1 May 2016 09:26:28 +0000 (11:26 +0200)]
Link to attachment page instead of big-ass image
Mikael Nordfeldth [Tue, 26 Apr 2016 00:57:14 +0000 (02:57 +0200)]
naughty extlib fix (PHP7)
The explode function didn't return empty elements (which split did)
Mikael Nordfeldth [Tue, 26 Apr 2016 00:41:56 +0000 (02:41 +0200)]
split is gone, use explode. PHP7 extlib fix
Mikael Nordfeldth [Tue, 26 Apr 2016 00:41:04 +0000 (02:41 +0200)]
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.
Mikael Nordfeldth [Mon, 25 Apr 2016 23:50:40 +0000 (01:50 +0200)]
Some PHP7 related package names
Mikael Nordfeldth [Mon, 18 Apr 2016 14:10:50 +0000 (16:10 +0200)]
Merge branch 'master' into mmn_fixes
Mikael Nordfeldth [Mon, 18 Apr 2016 14:09:36 +0000 (16:09 +0200)]
put local id, href and such in ostatus:conversation element
Mikael Nordfeldth [Mon, 18 Apr 2016 13:56:52 +0000 (15:56 +0200)]
Use constant for ATTN_PUBLIC (public collection)
Mikael Nordfeldth [Mon, 18 Apr 2016 13:33:20 +0000 (15:33 +0200)]
Oembed bugs with thumbnail generation.
Mikael Nordfeldth [Mon, 18 Apr 2016 13:21:05 +0000 (15:21 +0200)]
function declaration to match parent
Mikael Nordfeldth [Mon, 18 Apr 2016 13:08:47 +0000 (15:08 +0200)]
use getByID (also bad variable reference)
Mikael Nordfeldth [Mon, 18 Apr 2016 13:04:03 +0000 (15:04 +0200)]
strict type comparison
Mikael Nordfeldth [Fri, 8 Apr 2016 11:44:22 +0000 (13:44 +0200)]
"In conversation" text in noticelistitem
Mikael Nordfeldth [Mon, 4 Apr 2016 10:04:20 +0000 (12:04 +0200)]
Maybe stop deleteRelated from failing on constraint checking
Mikael Nordfeldth [Fri, 1 Apr 2016 21:21:57 +0000 (23:21 +0200)]
Send thr:in-reply-to as well, for clarity...
Mikael Nordfeldth [Fri, 1 Apr 2016 21:10:34 +0000 (23:10 +0200)]
More debugging in Salmon since we get situations which can't find inReplyToID
Mikael Nordfeldth [Fri, 1 Apr 2016 04:51:19 +0000 (06:51 +0200)]
Don't fail deleteRelated on NoProfileException
Mikael Nordfeldth [Fri, 1 Apr 2016 04:24:11 +0000 (06:24 +0200)]
Fix constraint checking and only run it if not already constrained
Mikael Nordfeldth [Fri, 1 Apr 2016 04:14:47 +0000 (06:14 +0200)]
Merge branch 'constraint_check_notice_table' into mmn_fixes
Mikael Nordfeldth [Thu, 31 Mar 2016 18:51:50 +0000 (20:51 +0200)]
Make sure $_SERVER['HTTP_REFERER'] isset when testing value
Mikael Nordfeldth [Thu, 31 Mar 2016 15:57:01 +0000 (17:57 +0200)]
Constraint check Notice table, need to get foreign key array!
Mikael Nordfeldth [Tue, 29 Mar 2016 23:32:11 +0000 (01:32 +0200)]
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...
Mikael Nordfeldth [Tue, 29 Mar 2016 23:31:17 +0000 (01:31 +0200)]
Possibly replace weirdly capitalized htTPs: too
Mikael Nordfeldth [Tue, 29 Mar 2016 12:36:27 +0000 (14:36 +0200)]
Use join instead of exists in SQL