]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
7 years agoGroup autocompletion now fills in hostname part
Mikael Nordfeldth [Thu, 10 Aug 2017 10:41:47 +0000 (12:41 +0200)]
Group autocompletion now fills in hostname part

7 years agoGroups can now be server-specific with !osm@gnusocial.de vs. !osm@sn.jonkman.ca
Mikael Nordfeldth [Thu, 10 Aug 2017 10:30:11 +0000 (12:30 +0200)]
Groups can now be server-specific with !osm@gnusocial.de vs. !osm@sn.jonkman.ca

7 years agoMake use of variable preMention signal method
Mikael Nordfeldth [Thu, 10 Aug 2017 09:33:18 +0000 (11:33 +0200)]
Make use of variable preMention signal method

7 years agoHarmonize webfinger formatting and enable variable pre-mention character
Mikael Nordfeldth [Thu, 10 Aug 2017 09:06:52 +0000 (11:06 +0200)]
Harmonize webfinger formatting and enable variable pre-mention character

7 years agoLogging term used HubSub instead of WebSub.
Mikael Nordfeldth [Sun, 6 Aug 2017 22:19:12 +0000 (00:19 +0200)]
Logging term used HubSub instead of WebSub.

7 years agoMastodon replies 201 Created for salmon slaps.
Mikael Nordfeldth [Sat, 5 Aug 2017 14:21:34 +0000 (16:21 +0200)]
Mastodon replies 201 Created for salmon slaps.

7 years agopreamble with newline for AtomPub output etc.
Mikael Nordfeldth [Sat, 5 Aug 2017 08:42:38 +0000 (10:42 +0200)]
preamble with newline for AtomPub output etc.

7 years agoMimetype was not recognized if longer than bare mime
Mikael Nordfeldth [Sat, 5 Aug 2017 07:46:14 +0000 (09:46 +0200)]
Mimetype was not recognized if longer than bare mime

7 years agoList the thread config value in lib/default.php
Mikael Nordfeldth [Thu, 3 Aug 2017 07:53:00 +0000 (09:53 +0200)]
List the thread config value in lib/default.php

7 years agoUpdated some PHP-related info in INSTALL
Mikael Nordfeldth [Thu, 3 Aug 2017 07:52:04 +0000 (09:52 +0200)]
Updated some PHP-related info in INSTALL

7 years agoQuote URL on dupe search and better logging on upgrade
Mikael Nordfeldth [Thu, 27 Jul 2017 17:39:55 +0000 (19:39 +0200)]
Quote URL on dupe search and better logging on upgrade

7 years agoMerge branch 'takeshitakenji/gnu-social-twitter-repeat-config' into mmn_fixes
Mikael Nordfeldth [Tue, 11 Jul 2017 20:09:12 +0000 (22:09 +0200)]
Merge branch 'takeshitakenji/gnu-social-twitter-repeat-config' into mmn_fixes

7 years agoMerge branch 'profile' into 'nightly'
mmn [Tue, 11 Jul 2017 20:05:47 +0000 (20:05 +0000)]
Merge branch 'profile' into 'nightly'

Change Profile->getUser() to match the current user

See merge request !129

7 years agoMerge branch 'doc-backup-restore-def-vals' into 'nightly'
mmn [Tue, 11 Jul 2017 20:01:28 +0000 (20:01 +0000)]
Merge branch 'doc-backup-restore-def-vals' into 'nightly'

doc: Update 'backup', 'restore' default values

See merge request !143

7 years agoMerge branch 'notice_id-xml' into 'nightly'
mmn [Tue, 11 Jul 2017 20:01:01 +0000 (20:01 +0000)]
Merge branch 'notice_id-xml' into 'nightly'

Use the statusnet namespace for notice_id in atom feed

See merge request !136

7 years agoMerge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
Mikael Nordfeldth [Tue, 11 Jul 2017 19:59:49 +0000 (21:59 +0200)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes

7 years agoMerge branch 'fix-doc-twitterapi' into 'master'
mmn [Tue, 11 Jul 2017 19:58:48 +0000 (19:58 +0000)]
Merge branch 'fix-doc-twitterapi' into 'master'

Fix a link of doc/twitterapi

See merge request !149

7 years agoIssue #279 raises the point of missing newlines
Mikael Nordfeldth [Tue, 11 Jul 2017 19:58:24 +0000 (21:58 +0200)]
Issue #279 raises the point of missing newlines

7 years agoMerge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
Mikael Nordfeldth [Tue, 11 Jul 2017 19:44:50 +0000 (21:44 +0200)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes

7 years agoMerge branch 'case-sensitive-openid' into 'master'
mmn [Tue, 11 Jul 2017 19:41:33 +0000 (19:41 +0000)]
Merge branch 'case-sensitive-openid' into 'master'

Fix OpenID discovery in pages using uppercase <HEAD> tag

Closes #60

See merge request !140

7 years agoMerge branch 'safe-gitignore' into 'master'
mmn [Tue, 11 Jul 2017 19:31:26 +0000 (19:31 +0000)]
Merge branch 'safe-gitignore' into 'master'

Ignore whole directory, not only inner contents

See merge request !145

7 years agoMerge branch 'xmpp-fix-1' into 'nightly'
mmn [Tue, 11 Jul 2017 19:18:51 +0000 (19:18 +0000)]
Merge branch 'xmpp-fix-1' into 'nightly'

Fix 'from' address in the XMPP ping command

See merge request !141

7 years agoAnother solution to merge request !146
Mikael Nordfeldth [Tue, 11 Jul 2017 19:16:30 +0000 (21:16 +0200)]
Another solution to merge request !146

7 years agoNoone uses Facebook anymore.
Mikael Nordfeldth [Tue, 11 Jul 2017 10:44:24 +0000 (12:44 +0200)]
Noone uses Facebook anymore.

7 years agoFixing HTTP_Request2_SocketWrapper so it times out
Mikael Nordfeldth [Tue, 11 Jul 2017 10:04:09 +0000 (12:04 +0200)]
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.

7 years agoHubSub now remembers recent failures and counts them
Mikael Nordfeldth [Mon, 10 Jul 2017 18:28:45 +0000 (20:28 +0200)]
HubSub now remembers recent failures and counts them

7 years agooEmbed had bad variable reference in error message
Mikael Nordfeldth [Mon, 10 Jul 2017 18:28:35 +0000 (20:28 +0200)]
oEmbed had bad variable reference in error message

7 years agoMaking upgrade.php somewhat more efficient by remember one-time-inits.
Mikael Nordfeldth [Mon, 10 Jul 2017 17:39:26 +0000 (19:39 +0200)]
Making upgrade.php somewhat more efficient by remember one-time-inits.

7 years agoBad constant (LOG_WARNING, not LOG_WARN)
Mikael Nordfeldth [Mon, 10 Jul 2017 12:50:25 +0000 (14:50 +0200)]
Bad constant (LOG_WARNING, not LOG_WARN)

7 years agoAuthCrypt README brought out of the stone age
Mikael Nordfeldth [Mon, 10 Jul 2017 12:49:01 +0000 (14:49 +0200)]
AuthCrypt README brought out of the stone age

7 years agoRework the push mechanism a bit to a less DB dependant queue
Mikael Nordfeldth [Mon, 10 Jul 2017 12:43:28 +0000 (14:43 +0200)]
Rework the push mechanism a bit to a less DB dependant queue

7 years agoAvoid excessive remote requests on oEmbed lookups
Mikael Nordfeldth [Mon, 10 Jul 2017 12:41:03 +0000 (14:41 +0200)]
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.)

7 years agoForce arrays in constructors of ActivityStreamJSONDocument and JSONActivityCollection
Mikael Nordfeldth [Mon, 10 Jul 2017 12:26:01 +0000 (14:26 +0200)]
Force arrays in constructors of ActivityStreamJSONDocument and JSONActivityCollection

Started using PHP7+ and it started complaining about count() being fed objects
that weren't "Countable". .)

7 years agoUse intval on ini_get or we use a string for timeout
Mikael Nordfeldth [Mon, 10 Jul 2017 12:10:32 +0000 (14:10 +0200)]
Use intval on ini_get or we use a string for timeout

7 years agoPatch DB before release, weird use of count()
Mikael Nordfeldth [Mon, 10 Jul 2017 12:10:10 +0000 (14:10 +0200)]
Patch DB before release, weird use of count()

7 years agoUpdating HTMLPurifier to 4.9.3
Mikael Nordfeldth [Mon, 10 Jul 2017 11:46:07 +0000 (13:46 +0200)]
Updating HTMLPurifier to 4.9.3

Source: https://htmlpurifier.org/download
Release date: 2017-06-19

7 years agoUpdate PEAR DB to 1.9.2
Mikael Nordfeldth [Mon, 10 Jul 2017 11:33:11 +0000 (13:33 +0200)]
Update PEAR DB to 1.9.2

Source: https://pear.php.net/package/DB
Release date: 2015-11-24

7 years agoUpdating PEAR Net_URL2 to 2.1.2
Mikael Nordfeldth [Mon, 10 Jul 2017 11:28:40 +0000 (13:28 +0200)]
Updating PEAR Net_URL2 to 2.1.2

Source: https://pear.php.net/package/Net_URL2
Release date: 2016-04-18

7 years agoUpdate PEAR DB_DataObject to 1.11.5
Mikael Nordfeldth [Mon, 10 Jul 2017 11:25:04 +0000 (13:25 +0200)]
Update PEAR DB_DataObject to 1.11.5

Source: https://pear.php.net/package/DB_DataObject
Release date: 2015-11-10

7 years agoPEAR Net_SMTP updated to 1.8.0
Mikael Nordfeldth [Mon, 10 Jul 2017 10:53:13 +0000 (12:53 +0200)]
PEAR Net_SMTP updated to 1.8.0

Source: https://pear.php.net/package/Net_SMTP
Release date: 2017-04-06

7 years agoPEAR Net_Socket updated to 1.2.2
Mikael Nordfeldth [Sun, 9 Jul 2017 21:09:03 +0000 (23:09 +0200)]
PEAR Net_Socket updated to 1.2.2

Source: https://pear.php.net/package/Net_Socket
Release date: 2017-04-13

7 years agochange default timeout setting for HTTPClient
Mikael Nordfeldth [Sun, 9 Jul 2017 20:49:49 +0000 (22:49 +0200)]
change default timeout setting for HTTPClient

7 years agoUpdating HTTP_Request2 to 2.3.0
Mikael Nordfeldth [Sun, 9 Jul 2017 20:17:52 +0000 (22:17 +0200)]
Updating HTTP_Request2 to 2.3.0

Source: https://pear.php.net/package/HTTP_Request2
Release date: 2016-02-13 15:24 UTC

7 years agoRemove debug call and change how connect_timeout is set
Mikael Nordfeldth [Sun, 9 Jul 2017 18:34:44 +0000 (20:34 +0200)]
Remove debug call and change how connect_timeout is set

7 years agoConfigure a default timeout for HTTP connections at 60s
Mikael Nordfeldth [Sun, 9 Jul 2017 18:07:18 +0000 (20:07 +0200)]
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.

7 years agoEndless loop nesting on ensureHub failure now fixed
Mikael Nordfeldth [Thu, 22 Jun 2017 12:37:32 +0000 (14:37 +0200)]
Endless loop nesting on ensureHub failure now fixed

Essentially I was missing a negation on a test if we were in rediscovery mode.

7 years agoFulltext indexes are supported in InnoDB since MariaDB 10.0.15
Mikael Nordfeldth [Wed, 21 Jun 2017 23:37:43 +0000 (01:37 +0200)]
Fulltext indexes are supported in InnoDB since MariaDB 10.0.15

7 years agoset a 'rediscovered' parameter to avoid nesting into an ensureHub loop forever
Mikael Nordfeldth [Wed, 21 Jun 2017 22:30:38 +0000 (00:30 +0200)]
set a 'rediscovered' parameter to avoid nesting into an ensureHub loop forever

7 years agoGNU social avatar by moshpirit / Alberto
Mikael Nordfeldth [Tue, 30 May 2017 19:37:53 +0000 (21:37 +0200)]
GNU social avatar by moshpirit / Alberto

7 years agofix a link of doc/twitterapi
MIYAGI Hikaru [Mon, 29 May 2017 21:55:39 +0000 (06:55 +0900)]
fix a link of doc/twitterapi

7 years agoSince ActivityContext::CONVERSATION changed to 'conversation' instead of 'ostatus...
Mikael Nordfeldth [Sat, 6 May 2017 13:25:44 +0000 (15:25 +0200)]
Since ActivityContext::CONVERSATION changed to 'conversation' instead of 'ostatus:conversation' we need to add it ourselves

the xmlstringerthinger doesn't really use namespaces afaik

7 years agoWhat just happened? Not sure if me or git caused duplicate code.
Mikael Nordfeldth [Sat, 6 May 2017 12:48:04 +0000 (14:48 +0200)]
What just happened? Not sure if me or git caused duplicate code.

7 years agoMerge branch 'master' into mmn_fixes
Mikael Nordfeldth [Sat, 6 May 2017 12:40:06 +0000 (14:40 +0200)]
Merge branch 'master' into mmn_fixes

7 years ago...and make sure we checkschema on Notice_prefs on upgrade...
Mikael Nordfeldth [Sat, 6 May 2017 11:54:42 +0000 (13:54 +0200)]
...and make sure we checkschema on Notice_prefs on upgrade...

7 years agoRevert some of 8a4bec811b07a0ed9d76d0aceb03855c91a67242
Mikael Nordfeldth [Sat, 6 May 2017 11:24:11 +0000 (13:24 +0200)]
Revert some of 8a4bec811b07a0ed9d76d0aceb03855c91a67242

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.

7 years agoNotice_prefs now available (I just copied Profile_prefs)
Mikael Nordfeldth [Sat, 6 May 2017 11:22:10 +0000 (13:22 +0200)]
Notice_prefs now available (I just copied Profile_prefs)

7 years agoOutput proper HTML and XML headers for single Atom entry
Mikael Nordfeldth [Sat, 6 May 2017 10:38:34 +0000 (12:38 +0200)]
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.

7 years agoOutput selfLink from notice asActivity[Object]
Mikael Nordfeldth [Sat, 6 May 2017 10:25:50 +0000 (12:25 +0200)]
Output selfLink from notice asActivity[Object]

7 years agoReturn false immediately if $url is empty for common_valid_http_url
Mikael Nordfeldth [Sat, 6 May 2017 10:25:27 +0000 (12:25 +0200)]
Return false immediately if $url is empty for common_valid_http_url

7 years agoNotices start saving selfLink from activities/objects
Mikael Nordfeldth [Sat, 6 May 2017 10:15:54 +0000 (12:15 +0200)]
Notices start saving selfLink from activities/objects

7 years agoHandle selfLink in ActivityObject
Mikael Nordfeldth [Sat, 6 May 2017 09:34:38 +0000 (11:34 +0200)]
Handle selfLink in ActivityObject

7 years ago...and make sure we checkschema on Notice_prefs on upgrade...
Mikael Nordfeldth [Sat, 6 May 2017 11:54:42 +0000 (13:54 +0200)]
...and make sure we checkschema on Notice_prefs on upgrade...

7 years agoRevert some of 8a4bec811b07a0ed9d76d0aceb03855c91a67242
Mikael Nordfeldth [Sat, 6 May 2017 11:24:11 +0000 (13:24 +0200)]
Revert some of 8a4bec811b07a0ed9d76d0aceb03855c91a67242

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.

7 years agoNotice_prefs now available (I just copied Profile_prefs)
Mikael Nordfeldth [Sat, 6 May 2017 11:22:10 +0000 (13:22 +0200)]
Notice_prefs now available (I just copied Profile_prefs)

7 years agoOutput proper HTML and XML headers for single Atom entry
Mikael Nordfeldth [Sat, 6 May 2017 10:38:34 +0000 (12:38 +0200)]
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.

7 years agoOutput selfLink from notice asActivity[Object]
Mikael Nordfeldth [Sat, 6 May 2017 10:25:50 +0000 (12:25 +0200)]
Output selfLink from notice asActivity[Object]

7 years agoReturn false immediately if $url is empty for common_valid_http_url
Mikael Nordfeldth [Sat, 6 May 2017 10:25:27 +0000 (12:25 +0200)]
Return false immediately if $url is empty for common_valid_http_url

7 years agoNotices start saving selfLink from activities/objects
Mikael Nordfeldth [Sat, 6 May 2017 10:15:54 +0000 (12:15 +0200)]
Notices start saving selfLink from activities/objects

7 years agoHandle selfLink in ActivityObject
Mikael Nordfeldth [Sat, 6 May 2017 09:34:38 +0000 (11:34 +0200)]
Handle selfLink in ActivityObject

7 years agodefault to #addtag on !group mention
Mikael Nordfeldth [Tue, 2 May 2017 19:12:17 +0000 (21:12 +0200)]
default to #addtag on !group mention

7 years agoFixed the parsing of ostatus:conversation etc.
Mikael Nordfeldth [Tue, 2 May 2017 16:58:22 +0000 (18:58 +0200)]
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.

7 years agoLess raw database dumps in debug please
Mikael Nordfeldth [Tue, 2 May 2017 07:18:43 +0000 (09:18 +0200)]
Less raw database dumps in debug please

7 years agoFix issues with non-subscribed Ostatus_profiles
Mikael Nordfeldth [Tue, 2 May 2017 07:14:30 +0000 (09:14 +0200)]
Fix issues with non-subscribed Ostatus_profiles

7 years agoI like to throw exceptions instead of using if statements.
Mikael Nordfeldth [Tue, 2 May 2017 07:07:39 +0000 (09:07 +0200)]
I like to throw exceptions instead of using if statements.

7 years agoFile_redirection->getFile could never get the file anyway if $redir->file_id was...
Mikael Nordfeldth [Tue, 2 May 2017 07:07:00 +0000 (09:07 +0200)]
File_redirection->getFile could never get the file anyway if $redir->file_id was empty...

7 years agoShow WebSub state on remote user profiles
Mikael Nordfeldth [Mon, 1 May 2017 19:18:04 +0000 (21:18 +0200)]
Show WebSub state on remote user profiles

7 years agoIntroduce neat function getFeedSub() on Ostatus_profile
Mikael Nordfeldth [Mon, 1 May 2017 19:17:22 +0000 (21:17 +0200)]
Introduce neat function getFeedSub() on Ostatus_profile

7 years agoChange mentions of PuSH to WebSub
Mikael Nordfeldth [Mon, 1 May 2017 09:04:27 +0000 (11:04 +0200)]
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...

7 years agoDebugging log fix.
Mikael Nordfeldth [Mon, 1 May 2017 08:34:51 +0000 (10:34 +0200)]
Debugging log fix.

7 years agoI think this will stop my daemons from endlessly looping
Mikael Nordfeldth [Mon, 1 May 2017 08:27:21 +0000 (10:27 +0200)]
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.

7 years agoMessage to end-user on why FeedSub failed.
Mikael Nordfeldth [Mon, 1 May 2017 05:40:16 +0000 (07:40 +0200)]
Message to end-user on why FeedSub failed.

7 years agoClearing cache showed my layout fail!
Mikael Nordfeldth [Mon, 1 May 2017 05:39:56 +0000 (07:39 +0200)]
Clearing cache showed my layout fail!

7 years agoMakes the attachment button stay within the form area...
Mikael Nordfeldth [Sun, 30 Apr 2017 18:32:10 +0000 (20:32 +0200)]
Makes the attachment button stay within the form area...

7 years agoShow what you're replying to in the web interface
Mikael Nordfeldth [Sun, 30 Apr 2017 08:37:21 +0000 (10:37 +0200)]
Show what you're replying to in the web interface

7 years agoensureHub on 422 status code (Superfeedr error on non-existing topic)
Mikael Nordfeldth [Sun, 30 Apr 2017 08:29:16 +0000 (10:29 +0200)]
ensureHub on 422 status code (Superfeedr error on non-existing topic)

7 years agoMore debugging info for FeedSub PuSH self-healing
Mikael Nordfeldth [Sun, 30 Apr 2017 07:46:15 +0000 (09:46 +0200)]
More debugging info for FeedSub PuSH self-healing

7 years agosyntax fix (throw _new_ *Exception)
Mikael Nordfeldth [Sun, 30 Apr 2017 07:33:06 +0000 (09:33 +0200)]
syntax fix (throw _new_ *Exception)

7 years agoMake sure we don't receiveFeed() in the case of that exception
Mikael Nordfeldth [Sun, 30 Apr 2017 07:31:16 +0000 (09:31 +0200)]
Make sure we don't receiveFeed() in the case of that exception

7 years agoUpdate huburi for FeedSub if PuSH signature is invalid
Mikael Nordfeldth [Sun, 30 Apr 2017 07:20:08 +0000 (09:20 +0200)]
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.

7 years agoConfirm_address::getByAddress not getAddress
Mikael Nordfeldth [Sat, 29 Apr 2017 12:48:46 +0000 (14:48 +0200)]
Confirm_address::getByAddress not getAddress

Also fixed the error handling to match the function call.

7 years agoIgnore whole directory, not only inner contents
Takuma YOSHIOKA [Sat, 29 Apr 2017 05:22:36 +0000 (14:22 +0900)]
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.

7 years agoSeparate ensureHub into function in FeedSub
Mikael Nordfeldth [Thu, 27 Apr 2017 07:24:12 +0000 (09:24 +0200)]
Separate ensureHub into function in FeedSub

7 years agoEscaping a URI in common_debug call
Mikael Nordfeldth [Thu, 27 Apr 2017 07:23:45 +0000 (09:23 +0200)]
Escaping a URI in common_debug call

7 years agoLRDD blacklisted URL test
Mikael Nordfeldth [Wed, 26 Apr 2017 21:21:13 +0000 (23:21 +0200)]
LRDD blacklisted URL test

7 years agoLRDD blacklisted URL test
Mikael Nordfeldth [Wed, 26 Apr 2017 21:21:13 +0000 (23:21 +0200)]
LRDD blacklisted URL test

7 years agoTest URLs against blacklist also on PuSH subscriptions.
Mikael Nordfeldth [Wed, 26 Apr 2017 20:41:59 +0000 (22:41 +0200)]
Test URLs against blacklist also on PuSH subscriptions.

7 years agoTest URLs against blacklist also on PuSH subscriptions.
Mikael Nordfeldth [Wed, 26 Apr 2017 20:41:59 +0000 (22:41 +0200)]
Test URLs against blacklist also on PuSH subscriptions.

7 years agoallowed_schemes was misspelled
Mikael Nordfeldth [Wed, 26 Apr 2017 20:11:28 +0000 (22:11 +0200)]
allowed_schemes was misspelled

7 years agoallowed_schemes was misspelled
Mikael Nordfeldth [Wed, 26 Apr 2017 20:11:28 +0000 (22:11 +0200)]
allowed_schemes was misspelled

7 years agoMoving form to its own file as we do nowadays
Mikael Nordfeldth [Tue, 25 Apr 2017 19:11:49 +0000 (21:11 +0200)]
Moving form to its own file as we do nowadays