]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
8 years agoMerge branch 'avatar-folder-perms' into 'nightly'
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

8 years agoMerge branch 'tom/noreferrer' into 'nightly'
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

8 years agoMerge branch 'strict-warnings' into 'nightly'
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

8 years agoMerge branch 'notice-location' into 'nightly'
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

8 years agoMerge branch 'site-notice' into 'nightly'
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

8 years agoMerge branch 'webmention-rocks' into 'nightly'
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

8 years agoApparently medium.com uses @ frequently i URLs
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.

8 years agoAllow 201 as well, because spec says so
Stephen Paul Weber [Fri, 10 Jun 2016 21:13:10 +0000 (21:13 +0000)]
Allow 201 as well, because spec says so

8 years agoPass all but two webmention.rocks tests
Stephen Paul Weber [Fri, 10 Jun 2016 21:03:16 +0000 (21:03 +0000)]
Pass all but two webmention.rocks tests

8 years agoSet avatar where available
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:50 +0000 (21:02 +0000)]
Set avatar where available

8 years agoGet avatar out of entry properly
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:34 +0000 (21:02 +0000)]
Get avatar out of entry properly

8 years agoNeed to strtotime before we can format the date
Stephen Paul Weber [Fri, 10 Jun 2016 21:02:08 +0000 (21:02 +0000)]
Need to strtotime before we can format the date

8 years agoUse strpos check properly
Stephen Paul Weber [Fri, 10 Jun 2016 21:01:53 +0000 (21:01 +0000)]
Use strpos check properly

8 years ago400 code needs ClientException
Stephen Paul Weber [Fri, 10 Jun 2016 21:01:23 +0000 (21:01 +0000)]
400 code needs ClientException

8 years agoWhen there is no useful title, class="p-name e-content"
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"

8 years agoAllow getting notice title without implying one
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

8 years agoUse noreferrer when linkifying attachments and allow this value in purifier
Thomas Karpiniec [Thu, 9 Jun 2016 09:56:36 +0000 (19:56 +1000)]
Use noreferrer when linkifying attachments and allow this value in purifier

8 years agoWIP: Display error if wrong perms on 'avatar' dir
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

8 years agoRe-enable notice locations
Chimo [Thu, 2 Jun 2016 01:56:42 +0000 (21:56 -0400)]
Re-enable notice locations

Removed a stray 'return' statement.

8 years agoSite Notice: common_purify instead of HTMLPurifier
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

8 years agoUpdate prepare() method on Action subclasses.
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

8 years agoUpdate handle() method on Action subclasses.
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

8 years agoAdd /download action for attachments
Mikael Nordfeldth [Mon, 9 May 2016 20:08:36 +0000 (22:08 +0200)]
Add /download action for attachments

8 years agoDon't warp attachment page thumbnails
Mikael Nordfeldth [Wed, 4 May 2016 09:59:52 +0000 (11:59 +0200)]
Don't warp attachment page thumbnails

8 years ago2-frame GIF animations weren't recognised as animated
Mikael Nordfeldth [Wed, 4 May 2016 09:57:55 +0000 (11:57 +0200)]
2-frame GIF animations weren't recognised as animated

8 years agoDocumentation update in File class file
Mikael Nordfeldth [Wed, 4 May 2016 09:44:14 +0000 (11:44 +0200)]
Documentation update in File class file

8 years agoMisplaced break/continue statements.
Mikael Nordfeldth [Wed, 4 May 2016 09:44:00 +0000 (11:44 +0200)]
Misplaced break/continue statements.

8 years agoUseFileAsThumbnailException uses direct File object now
Mikael Nordfeldth [Wed, 4 May 2016 09:34:50 +0000 (11:34 +0200)]
UseFileAsThumbnailException uses direct File object now

8 years agoLinkback references to unset indexes + spelling error
Mikael Nordfeldth [Sun, 1 May 2016 09:36:07 +0000 (11:36 +0200)]
Linkback references to unset indexes + spelling error

8 years agoLink to attachment page instead of big-ass image
Mikael Nordfeldth [Sun, 1 May 2016 09:26:28 +0000 (11:26 +0200)]
Link to attachment page instead of big-ass image

8 years agonaughty extlib fix (PHP7)
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)

8 years agosplit is gone, use explode. PHP7 extlib fix
Mikael Nordfeldth [Tue, 26 Apr 2016 00:41:56 +0000 (02:41 +0200)]
split is gone, use explode. PHP7 extlib fix

8 years agoNaughty fix for extlib XMPPHP (PHP7)
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.

8 years agoSome PHP7 related package names
Mikael Nordfeldth [Mon, 25 Apr 2016 23:50:40 +0000 (01:50 +0200)]
Some PHP7 related package names

8 years agoMerge branch 'master' into mmn_fixes
Mikael Nordfeldth [Mon, 18 Apr 2016 14:10:50 +0000 (16:10 +0200)]
Merge branch 'master' into mmn_fixes

8 years agoput local id, href and such in ostatus:conversation element
Mikael Nordfeldth [Mon, 18 Apr 2016 14:09:36 +0000 (16:09 +0200)]
put local id, href and such in ostatus:conversation element

8 years agoUse constant for ATTN_PUBLIC (public collection)
Mikael Nordfeldth [Mon, 18 Apr 2016 13:56:52 +0000 (15:56 +0200)]
Use constant for ATTN_PUBLIC (public collection)

8 years agoOembed bugs with thumbnail generation.
Mikael Nordfeldth [Mon, 18 Apr 2016 13:33:20 +0000 (15:33 +0200)]
Oembed bugs with thumbnail generation.

8 years agofunction declaration to match parent
Mikael Nordfeldth [Mon, 18 Apr 2016 13:21:05 +0000 (15:21 +0200)]
function declaration to match parent

8 years agouse getByID (also bad variable reference)
Mikael Nordfeldth [Mon, 18 Apr 2016 13:08:47 +0000 (15:08 +0200)]
use getByID (also bad variable reference)

8 years agostrict type comparison
Mikael Nordfeldth [Mon, 18 Apr 2016 13:04:03 +0000 (15:04 +0200)]
strict type comparison

8 years ago"In conversation" text in noticelistitem
Mikael Nordfeldth [Fri, 8 Apr 2016 11:44:22 +0000 (13:44 +0200)]
"In conversation" text in noticelistitem

8 years agoMaybe stop deleteRelated from failing on constraint checking
Mikael Nordfeldth [Mon, 4 Apr 2016 10:04:20 +0000 (12:04 +0200)]
Maybe stop deleteRelated from failing on constraint checking

8 years agoSend thr:in-reply-to as well, for clarity...
Mikael Nordfeldth [Fri, 1 Apr 2016 21:21:57 +0000 (23:21 +0200)]
Send thr:in-reply-to as well, for clarity...

8 years agoMore debugging in Salmon since we get situations which can't find inReplyToID
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

8 years agoDon't fail deleteRelated on NoProfileException
Mikael Nordfeldth [Fri, 1 Apr 2016 04:51:19 +0000 (06:51 +0200)]
Don't fail deleteRelated on NoProfileException

8 years agoFix constraint checking and only run it if not already constrained
Mikael Nordfeldth [Fri, 1 Apr 2016 04:24:11 +0000 (06:24 +0200)]
Fix constraint checking and only run it if not already constrained

8 years agoMerge branch 'constraint_check_notice_table' into mmn_fixes
Mikael Nordfeldth [Fri, 1 Apr 2016 04:14:47 +0000 (06:14 +0200)]
Merge branch 'constraint_check_notice_table' into mmn_fixes

8 years agoMake sure $_SERVER['HTTP_REFERER'] isset when testing value
Mikael Nordfeldth [Thu, 31 Mar 2016 18:51:50 +0000 (20:51 +0200)]
Make sure $_SERVER['HTTP_REFERER'] isset when testing value

8 years agoConstraint check Notice table, need to get foreign key array!
Mikael Nordfeldth [Thu, 31 Mar 2016 15:57:01 +0000 (17:57 +0200)]
Constraint check Notice table, need to get foreign key array!

8 years agofix/legacy_http for WebFinger + some minor fixes
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...

8 years agoPossibly replace weirdly capitalized htTPs: too
Mikael Nordfeldth [Tue, 29 Mar 2016 23:31:17 +0000 (01:31 +0200)]
Possibly replace weirdly capitalized htTPs: too

8 years agoUse join instead of exists in SQL
Mikael Nordfeldth [Tue, 29 Mar 2016 12:36:27 +0000 (14:36 +0200)]
Use join instead of exists in SQL

8 years agoI was too quick to save that file (File::getByUrl takes 1 arg)
Mikael Nordfeldth [Tue, 29 Mar 2016 12:33:40 +0000 (14:33 +0200)]
I was too quick to save that file (File::getByUrl takes 1 arg)

8 years agoWe should assume all verbs and such are their full URIs in our db
Mikael Nordfeldth [Tue, 29 Mar 2016 10:57:52 +0000 (12:57 +0200)]
We should assume all verbs and such are their full URIs in our db

8 years agoGah, bad syntax
Mikael Nordfeldth [Tue, 29 Mar 2016 10:55:50 +0000 (12:55 +0200)]
Gah, bad syntax

8 years agoIndex object_type too...
Mikael Nordfeldth [Tue, 29 Mar 2016 10:48:25 +0000 (12:48 +0200)]
Index object_type too...

8 years agoUpgrade script for Bookmark uses joins instead of exists (performance++)
Mikael Nordfeldth [Tue, 29 Mar 2016 10:48:00 +0000 (12:48 +0200)]
Upgrade script for Bookmark uses joins instead of exists (performance++)

8 years agoForgotten File::getByUrl conversations (performance++)
Mikael Nordfeldth [Tue, 29 Mar 2016 10:13:53 +0000 (12:13 +0200)]
Forgotten File::getByUrl conversations (performance++)

8 years agoBetter indexing for Notice (performance++)
Mikael Nordfeldth [Tue, 29 Mar 2016 10:13:33 +0000 (12:13 +0200)]
Better indexing for Notice (performance++)

8 years agoUpgrade info from Bookmark plugin
Mikael Nordfeldth [Tue, 29 Mar 2016 10:13:23 +0000 (12:13 +0200)]
Upgrade info from Bookmark plugin

8 years agoa little bit more explicit logging
Mikael Nordfeldth [Mon, 28 Mar 2016 14:41:29 +0000 (16:41 +0200)]
a little bit more explicit logging

8 years agoEmbarrasing copy-paste gone too fast
Mikael Nordfeldth [Mon, 28 Mar 2016 14:25:29 +0000 (16:25 +0200)]
Embarrasing copy-paste gone too fast

8 years agoDOMElement not DOMDocument
Mikael Nordfeldth [Mon, 28 Mar 2016 14:23:15 +0000 (16:23 +0200)]
DOMElement not DOMDocument

8 years agoUpdate Profile Data script fixes, might work for groups too now
Mikael Nordfeldth [Mon, 28 Mar 2016 14:19:47 +0000 (16:19 +0200)]
Update Profile Data script fixes, might work for groups too now

8 years agoOStatus update profile data script fixes
Mikael Nordfeldth [Mon, 28 Mar 2016 13:42:41 +0000 (15:42 +0200)]
OStatus update profile data script fixes

8 years agoProbably fixes issue with looping XMPP queue items
Mikael Nordfeldth [Mon, 28 Mar 2016 09:33:52 +0000 (11:33 +0200)]
Probably fixes issue with looping XMPP queue items

8 years agorename config option site/logdebug to log/debugtrace
Mikael Nordfeldth [Sun, 27 Mar 2016 14:36:45 +0000 (16:36 +0200)]
rename config option site/logdebug to log/debugtrace

8 years agoEmbed attachments marked up as microformats2 (I think rather properly)
Mikael Nordfeldth [Sun, 27 Mar 2016 14:21:43 +0000 (16:21 +0200)]
Embed attachments marked up as microformats2 (I think rather properly)

8 years agoInitial (not yet working) fetch remote plugin
Mikael Nordfeldth [Sun, 27 Mar 2016 13:01:44 +0000 (15:01 +0200)]
Initial (not yet working) fetch remote plugin

8 years agoMatching inherited function definition
Mikael Nordfeldth [Sun, 27 Mar 2016 13:01:08 +0000 (15:01 +0200)]
Matching inherited function definition

8 years agoOutput proper remote info on WebFinger notice resources
Mikael Nordfeldth [Sun, 27 Mar 2016 12:56:27 +0000 (14:56 +0200)]
Output proper remote info on WebFinger notice resources

8 years agoActually return an Ostatus_profile
Mikael Nordfeldth [Sun, 27 Mar 2016 12:54:14 +0000 (14:54 +0200)]
Actually return an Ostatus_profile

8 years agoFetchRemoteNotice event call in Notice (not effective yet)
Mikael Nordfeldth [Sun, 27 Mar 2016 12:00:05 +0000 (14:00 +0200)]
FetchRemoteNotice event call in Notice (not effective yet)

8 years agoUse HTTPClient instead of Yadis HTTPFetcher in Linkback plugin
Mikael Nordfeldth [Thu, 24 Mar 2016 02:01:18 +0000 (03:01 +0100)]
Use HTTPClient instead of Yadis HTTPFetcher in Linkback plugin

8 years agoHTTPClient::quickGet now supports headers as argument
Mikael Nordfeldth [Thu, 24 Mar 2016 01:44:11 +0000 (02:44 +0100)]
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)

8 years agoCatch some exceptions in Linkback
Mikael Nordfeldth [Thu, 24 Mar 2016 01:00:16 +0000 (02:00 +0100)]
Catch some exceptions in Linkback

8 years agoStrictify Notice->isPublic()
Mikael Nordfeldth [Thu, 24 Mar 2016 00:54:33 +0000 (01:54 +0100)]
Strictify Notice->isPublic()

8 years agoStricter typing in Realtime plugin functions
Mikael Nordfeldth [Thu, 24 Mar 2016 00:41:58 +0000 (01:41 +0100)]
Stricter typing in Realtime plugin functions

8 years agoAttachment and file handling since we could get NULL instead of File
Mikael Nordfeldth [Wed, 23 Mar 2016 16:53:38 +0000 (17:53 +0100)]
Attachment and file handling since we could get NULL instead of File

8 years agoDebugging output in OStatus for easier reading+greping
Mikael Nordfeldth [Wed, 23 Mar 2016 16:52:02 +0000 (17:52 +0100)]
Debugging output in OStatus for easier reading+greping

8 years agoNot really necessary in practice but makes better queries
Mikael Nordfeldth [Wed, 23 Mar 2016 16:51:13 +0000 (17:51 +0100)]
Not really necessary in practice but makes better queries

8 years agoIf upgraded from http to https, keep hubsub->topic up to date too (thanks hannes2peer)
Mikael Nordfeldth [Wed, 23 Mar 2016 14:25:21 +0000 (15:25 +0100)]
If upgraded from http to https, keep hubsub->topic up to date too (thanks hannes2peer)

8 years agoUse the new onUpdateKeys in dataobject for tasks on-update of keys
Mikael Nordfeldth [Wed, 23 Mar 2016 14:22:34 +0000 (15:22 +0100)]
Use the new onUpdateKeys in dataobject for tasks on-update of keys

sets the hashkey column of the row to sha1(topic + '|' + callback)

8 years agoChange config webfinger/http_alias to fix/legacy_http
Mikael Nordfeldth [Wed, 23 Mar 2016 14:21:02 +0000 (15:21 +0100)]
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!

8 years agoAllow actions to be performed on updateWithKeys
Mikael Nordfeldth [Wed, 23 Mar 2016 14:19:50 +0000 (15:19 +0100)]
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.

8 years agoForgot a microsummary route in the latest commit
Mikael Nordfeldth [Tue, 22 Mar 2016 21:37:59 +0000 (22:37 +0100)]
Forgot a microsummary route in the latest commit

8 years agoMicrosummaries had issues and were removed in Firefox 6.0 anyway
Mikael Nordfeldth [Tue, 22 Mar 2016 21:31:01 +0000 (22:31 +0100)]
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.

8 years agoIf the attachment is a photo, don't replace representation in oEmbed
Mikael Nordfeldth [Tue, 22 Mar 2016 13:02:36 +0000 (14:02 +0100)]
If the attachment is a photo, don't replace representation in oEmbed

8 years agoentry attachment css
Mikael Nordfeldth [Mon, 21 Mar 2016 23:03:22 +0000 (00:03 +0100)]
entry attachment css

8 years agodoActionPost for delete should use deleteAs
Mikael Nordfeldth [Mon, 21 Mar 2016 17:07:29 +0000 (18:07 +0100)]
doActionPost for delete should use deleteAs

8 years agoJust some comment clarification
Mikael Nordfeldth [Mon, 21 Mar 2016 16:50:06 +0000 (17:50 +0100)]
Just some comment clarification

8 years agoNotice->deleteRelated should be called from delete()
Mikael Nordfeldth [Mon, 21 Mar 2016 16:34:03 +0000 (17:34 +0100)]
Notice->deleteRelated should be called from delete()

8 years agoMerge branch 'master' into mmn_fixes
Mikael Nordfeldth [Mon, 21 Mar 2016 11:27:04 +0000 (12:27 +0100)]
Merge branch 'master' into mmn_fixes

8 years agoSome Google stuff that need to be there (or comments)
Mikael Nordfeldth [Mon, 21 Mar 2016 11:25:04 +0000 (12:25 +0100)]
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

8 years agowoops, accidentally deleted updates-from rel on mass Google-deletion
Mikael Nordfeldth [Mon, 21 Mar 2016 11:12:24 +0000 (12:12 +0100)]
woops, accidentally deleted updates-from rel on mass Google-deletion

8 years agowoops, accidentally deleted updates-from rel on mass Google-deletion
Mikael Nordfeldth [Mon, 21 Mar 2016 11:12:24 +0000 (12:12 +0100)]
woops, accidentally deleted updates-from rel on mass Google-deletion

8 years agoAvoid "property of non-object" PHP notice.
Mikael Nordfeldth [Mon, 21 Mar 2016 10:17:25 +0000 (11:17 +0100)]
Avoid "property of non-object" PHP notice.

8 years agoMerge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
Mikael Nordfeldth [Mon, 21 Mar 2016 02:24:15 +0000 (03:24 +0100)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes

8 years agogeometa.js doesn't exist anymore
Mikael Nordfeldth [Mon, 21 Mar 2016 02:11:22 +0000 (03:11 +0100)]
geometa.js doesn't exist anymore