]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
Mikael Nordfeldth [Mon, 26 May 2014 21:07:37 +0000 (23:07 +0200)]
Removed MagicEnvelopeCompat, legacy from SN <0.9.7
Mikael Nordfeldth [Mon, 26 May 2014 18:06:11 +0000 (20:06 +0200)]
Minor changes in Salmon lib for Magicsig retrieval.
Mikael Nordfeldth [Mon, 26 May 2014 13:05:14 +0000 (15:05 +0200)]
Make Profile::fromUri use UnknownUriException
Mikael Nordfeldth [Mon, 26 May 2014 12:39:47 +0000 (14:39 +0200)]
UnknownUriException added for better error handling
Mikael Nordfeldth [Mon, 26 May 2014 12:36:41 +0000 (14:36 +0200)]
NoProfileException collision avoidance fix
Mikael Nordfeldth [Mon, 26 May 2014 12:18:25 +0000 (14:18 +0200)]
Should not normalize Salmon author URIs.
It's normalized in Discovery->lookup later anyway.
Mikael Nordfeldth [Mon, 26 May 2014 12:14:54 +0000 (14:14 +0200)]
getAuthorUri is a more appropriate function name
Mikael Nordfeldth [Mon, 26 May 2014 12:13:35 +0000 (14:13 +0200)]
checkAuthor not used anywhere
Mikael Nordfeldth [Mon, 19 May 2014 16:34:44 +0000 (18:34 +0200)]
There's no guarantee we have an Ostatus_profile for Feedsub
Mikael Nordfeldth [Mon, 19 May 2014 16:07:38 +0000 (18:07 +0200)]
Inform and make use of NoProfileException in OStatus actions
This is because Ostatus_profile->localProfile() throws NoProfileException
instead of returning null for profiles which don't exist in Profile table.
Mikael Nordfeldth [Mon, 19 May 2014 16:07:14 +0000 (18:07 +0200)]
UsersalmonAction cleanup
Mikael Nordfeldth [Mon, 19 May 2014 15:58:05 +0000 (17:58 +0200)]
Ostatus_profile throws NoProfileException from localProfile()
Some implementations of the exception handling is included here,
the actions come in a later commit.
Mikael Nordfeldth [Mon, 19 May 2014 15:13:32 +0000 (17:13 +0200)]
NoUriException added and implemented in FeedSub class
This is a specific exception for objects which require URI but lack it,
first implemented in FeedSub to allow for identification of bad entries.
Mikael Nordfeldth [Mon, 19 May 2014 13:19:17 +0000 (15:19 +0200)]
Removing unused functions from Bookmark plugin
Mikael Nordfeldth [Mon, 19 May 2014 12:53:11 +0000 (14:53 +0200)]
adminUpdates setting not available now
We don't run a service similar to update.status.net yet. Maybe we should,
but that's for the future to decide. Currently I view it as a callback
that we want to avoid.
Mikael Nordfeldth [Mon, 19 May 2014 12:46:54 +0000 (14:46 +0200)]
isLocal() for User_group
Mikael Nordfeldth [Mon, 19 May 2014 12:46:35 +0000 (14:46 +0200)]
Minor script fixes
Mikael Nordfeldth [Sun, 18 May 2014 23:09:21 +0000 (01:09 +0200)]
sprintf for SQL calls, please
Mikael Nordfeldth [Sun, 18 May 2014 22:54:43 +0000 (00:54 +0200)]
Show more links work with AJAX-retrieved HTML
Attachment_ajaxAction has been removed since AttachmentAction handles
AJAX calls splendidly.
Mikael Nordfeldth [Sun, 18 May 2014 21:25:40 +0000 (23:25 +0200)]
Don't report all linked URLs to remote sites
noembed.com acts as a proxy for oEmbed requests, but that also means they
get all the links we post on our instances, given that they're used as a
default endpoint.
Mikael Nordfeldth [Sun, 18 May 2014 21:11:22 +0000 (23:11 +0200)]
Don't show or preview text/html attachments
htmLawed cleans stuff out properly, but there's no very good way right
now to show text/html attachments, since everything gets jumbled up with
our own CSS etc. Best would be an iframe or just a new tab or so.
Mikael Nordfeldth [Sun, 18 May 2014 19:03:10 +0000 (21:03 +0200)]
Notice->repeat() function takes Profile as argument now
Mikael Nordfeldth [Sun, 18 May 2014 18:53:44 +0000 (20:53 +0200)]
Notice->repeat should include the full message
Any clients showing the repeat itself should have its own shortening or
otherwise formatting rules which it can apply itself.
Mikael Nordfeldth [Sun, 18 May 2014 18:50:15 +0000 (20:50 +0200)]
RepeatAction extends FormAction (and ManagedAction)
Mikael Nordfeldth [Sun, 18 May 2014 18:47:30 +0000 (20:47 +0200)]
Action->showContent now defined as protected
All the rendering functions should only be called form within the Action.
Mikael Nordfeldth [Sun, 18 May 2014 18:19:05 +0000 (20:19 +0200)]
Only POST Form widgets send a session token.
Mikael Nordfeldth [Sun, 18 May 2014 18:18:18 +0000 (20:18 +0200)]
GET request would send 'search' parameter because it had a name
Mikael Nordfeldth [Sun, 18 May 2014 17:59:40 +0000 (19:59 +0200)]
Making FormAction subclasses use same sessionToken() code
Mikael Nordfeldth [Sun, 18 May 2014 12:05:29 +0000 (14:05 +0200)]
Improved imageboard-style notice feeds on web UI
Mikael Nordfeldth [Sun, 18 May 2014 11:31:31 +0000 (13:31 +0200)]
FormAction extends ManagedAction
handlePost is now more naturally called and doesn't require a separate
'handle' function for each subclass.
Mikael Nordfeldth [Sun, 18 May 2014 10:57:46 +0000 (12:57 +0200)]
AttachmentAction extends to ManagedAction
Also moved AttachmentListItem and its extended class Attachment are moved
into separate files (autoloaded from lib/).
Mikael Nordfeldth [Sat, 17 May 2014 13:14:34 +0000 (15:14 +0200)]
XrdAction extends ManagedAction
Vinilox [Wed, 14 May 2014 08:46:14 +0000 (10:46 +0200)]
Documentation update : PHP EXIF extension is required for thumbnails to be properly oriented
Mikael Nordfeldth [Wed, 14 May 2014 08:35:05 +0000 (10:35 +0200)]
Apparently exif_read_data wasn't globally available.
Mikael Nordfeldth [Mon, 12 May 2014 20:46:32 +0000 (22:46 +0200)]
Some getActionName fiddling in Action class
Mikael Nordfeldth [Mon, 12 May 2014 20:41:05 +0000 (22:41 +0200)]
ProfileAction derivatives somewhat migrated to ManagedAction
Mikael Nordfeldth [Mon, 12 May 2014 13:16:41 +0000 (15:16 +0200)]
Clear out stored files and reltaed thumbnails when a File is deleted.
Mikael Nordfeldth [Mon, 12 May 2014 12:45:23 +0000 (14:45 +0200)]
Only JPEG files (and TIFF, which we don't support) have EXIF
Mikael Nordfeldth [Mon, 12 May 2014 12:41:12 +0000 (14:41 +0200)]
Thumbnail cleaning script, for missing files and File entries
Should be safe to run at any time, since thumbnails are regenerated on demand.
Mikael Nordfeldth [Mon, 12 May 2014 12:33:41 +0000 (14:33 +0200)]
File_thumbnail fixes (run scripts/upgrade.php)
We're now capable of doing image rotation for thumbnails based on
EXIF orientation data. Also, thumbnails are tracked by filenames and
thus we can delete them from storage when we feel like it.
Mikael Nordfeldth [Mon, 12 May 2014 09:41:51 +0000 (11:41 +0200)]
ConversationTree is now a plugin (not oldschool setting)
Conversation trees works pretty bad with the current layout, javascript
etc. So it's best if we separate it and work on it as a side-project. The
oldschool settings are currently being deprecated (or broken out like this).
I'll wait with removing User preferences for oldschool conversation tree,
since that might be reusable data. But I guess it will go in the near future.
Mikael Nordfeldth [Mon, 12 May 2014 09:13:13 +0000 (11:13 +0200)]
Not sure how much time to spend on GNUsocialPhotos plugin
Mikael Nordfeldth [Mon, 12 May 2014 09:08:25 +0000 (11:08 +0200)]
FilteringNoticeStream now uses OOP for getNotices
getNoticeIds gives the notices to fetch, which are caught by getNotices
in a parent class.
Mikael Nordfeldth [Mon, 12 May 2014 09:07:00 +0000 (11:07 +0200)]
Bad variable reference in ProfileNoticeStream
Mikael Nordfeldth [Mon, 12 May 2014 08:27:52 +0000 (10:27 +0200)]
Use an Event to present notices conversations
Mikael Nordfeldth [Sun, 11 May 2014 20:46:40 +0000 (22:46 +0200)]
More SQL in the conversation notice fetching
Mikael Nordfeldth [Sun, 11 May 2014 19:11:09 +0000 (21:11 +0200)]
ConversationAction extends from ManagedAction
Also added some of the nifty autoconfiguration, such as $this->scoped,
to ConversationAction for increased code consistency.
Mikael Nordfeldth [Sun, 11 May 2014 19:06:59 +0000 (21:06 +0200)]
Initial version of ManagedAction
This will simplify actions for future development and maintenance
since we can automate much more (such as auto-running show[Ajax|Page])
and handle errors of various kinds. Essentially the same kind of
improvements as Managed_DataObject gives us.
Mikael Nordfeldth [Sun, 11 May 2014 19:05:25 +0000 (21:05 +0200)]
ConversationRepliesAction removed, Conversation is enough
Mikael Nordfeldth [Sat, 10 May 2014 13:06:31 +0000 (15:06 +0200)]
Order InboxNoticeStream by id instead of created
notice.id will give us even really old posts, which were
recently imported. For example if a remote instance had
problems and just managed to post here. Another solution
would be to have a 'notice.imported' field.
Mikael Nordfeldth [Sat, 10 May 2014 11:06:18 +0000 (13:06 +0200)]
Notice->getUrl() for shares would throw exception in some feeds
Mikael Nordfeldth [Sat, 10 May 2014 10:29:34 +0000 (12:29 +0200)]
FileAction removed (we have AttachmentAction).
It seems it was only used to get a _single_ file attachment from
the posted notice, with no possibility to get multiple attachments.
If one fetches metadata about attachments for the notice, we have
enough data there to fulfill anyone's fetching dreams.
Mikael Nordfeldth [Sat, 10 May 2014 00:50:56 +0000 (02:50 +0200)]
Removed 'bookmarklet' since we have Bookmark plugin
Mikael Nordfeldth [Sat, 10 May 2014 00:33:36 +0000 (02:33 +0200)]
Remote profiles in AccountProfileBlock generated errors
Mikael Nordfeldth [Sat, 10 May 2014 00:01:58 +0000 (02:01 +0200)]
"Twitter card" support had badly referenced HTML outputter
Mikael Nordfeldth [Fri, 9 May 2014 08:49:00 +0000 (10:49 +0200)]
Directory to default plugins (disabled for singleuser)
Mikael Nordfeldth [Fri, 9 May 2014 08:46:46 +0000 (10:46 +0200)]
curry.php can always be included (we use PHP>5.2)
Mikael Nordfeldth [Fri, 9 May 2014 08:36:22 +0000 (10:36 +0200)]
Test against PHP_VERSION < 5.2.6, we don't support that low
Mikael Nordfeldth [Fri, 9 May 2014 08:31:55 +0000 (10:31 +0200)]
OStatus enabled by default, only disabled for private siteprofile
Mikael Nordfeldth [Fri, 9 May 2014 08:02:07 +0000 (10:02 +0200)]
Lighttpd config example updated.
Mikael Nordfeldth [Wed, 7 May 2014 09:50:20 +0000 (11:50 +0200)]
since_id and max_id for RawInboxNoticeStream
Otherwise you could only fetch a strict limit since the latest notice.
Mikael Nordfeldth [Wed, 7 May 2014 07:52:50 +0000 (09:52 +0200)]
Too many bird wings ({), sorry Erkan :)
Mikael Nordfeldth [Wed, 7 May 2014 07:51:37 +0000 (09:51 +0200)]
width and height are now properties in the File class
Mikael Nordfeldth [Wed, 7 May 2014 07:19:55 +0000 (09:19 +0200)]
misplaced dollar sign, also URLs != attention URIs
Mikael Nordfeldth [Tue, 6 May 2014 22:06:16 +0000 (00:06 +0200)]
Old examples of lacking 'new' before 'Exception'
Mikael Nordfeldth [Tue, 6 May 2014 22:06:04 +0000 (00:06 +0200)]
Forgot 'new' before the Exception class
Mikael Nordfeldth [Tue, 6 May 2014 21:43:02 +0000 (23:43 +0200)]
Bad variable reference in OembedPlugin
Mikael Nordfeldth [Tue, 6 May 2014 21:40:45 +0000 (23:40 +0200)]
Bad variable reference in event hook.
Mikael Nordfeldth [Tue, 6 May 2014 21:32:32 +0000 (23:32 +0200)]
OpportunisticQM moved from core to default plugins.
This makes it easier to disable, but remember that you must then
either enable and maintain queue daemons or disable queueing (and
handle whatever remaining queue items are stored in the database)!
Mikael Nordfeldth [Tue, 6 May 2014 21:00:30 +0000 (23:00 +0200)]
Moved oEmbed stuff out to a plugin (Oembed).
Mikael Nordfeldth [Tue, 6 May 2014 19:49:42 +0000 (21:49 +0200)]
Enable events for showing Attachment representation
Mikael Nordfeldth [Tue, 6 May 2014 14:18:47 +0000 (16:18 +0200)]
Garbage collection script didn't loop through anything
Mikael Nordfeldth [Tue, 6 May 2014 14:08:36 +0000 (16:08 +0200)]
User object didn't have getNickname() function
We're just jumping on to the Profile->getNickname() function.
Mikael Nordfeldth [Tue, 6 May 2014 13:43:06 +0000 (15:43 +0200)]
Missed a $user->id to $profile->id translation
Mikael Nordfeldth [Tue, 6 May 2014 13:40:57 +0000 (15:40 +0200)]
More Exceptions for FeedSub doSubscribe and related functions
Now also garbageCollect will now throw exceptions of failures of all kinds
and only reply true/false on entirely successful runs of sub/unsub.
Mikael Nordfeldth [Tue, 6 May 2014 12:36:52 +0000 (14:36 +0200)]
Type testing instead of just empty() in OStatusPlugin
Mikael Nordfeldth [Tue, 6 May 2014 12:08:58 +0000 (14:08 +0200)]
Various minor theme directory updates
Mikael Nordfeldth [Tue, 6 May 2014 11:26:30 +0000 (13:26 +0200)]
parent::handlePost() in CancelsubscriptionAction
Mikael Nordfeldth [Tue, 6 May 2014 09:33:06 +0000 (11:33 +0200)]
MagicEnvelope class now throws exception on XRD fail
Mikael Nordfeldth [Mon, 5 May 2014 22:22:02 +0000 (00:22 +0200)]
Only run EndSubscribe when it is really a sub
Mikael Nordfeldth [Mon, 5 May 2014 21:58:55 +0000 (23:58 +0200)]
Shorter, cleaner, smarter CancelsubscriptionAction
Mikael Nordfeldth [Mon, 5 May 2014 21:57:41 +0000 (23:57 +0200)]
More modern coding, stuff related to subscriptions
Also trying to use the newly implemented AlreadyFulfilledException
Mikael Nordfeldth [Mon, 5 May 2014 21:20:43 +0000 (23:20 +0200)]
AlreadyFulfilledException added, for acceptable exceptions
Mikael Nordfeldth [Mon, 5 May 2014 21:02:17 +0000 (23:02 +0200)]
MSN probably doesn't work, and we don't like it anyway
Mikael Nordfeldth [Mon, 5 May 2014 20:49:34 +0000 (22:49 +0200)]
Cleaning up FavorAction
Mikael Nordfeldth [Mon, 5 May 2014 17:37:37 +0000 (19:37 +0200)]
UsersalmonAction updated to stronger typing standards
Mikael Nordfeldth [Mon, 5 May 2014 17:25:39 +0000 (19:25 +0200)]
GroupsalmonAction updated to stronger typing standards
Mikael Nordfeldth [Mon, 5 May 2014 17:10:44 +0000 (19:10 +0200)]
More debugging for Salmon activities
Mikael Nordfeldth [Mon, 5 May 2014 17:06:22 +0000 (19:06 +0200)]
Stronger typing and function access control in OStatus
Mikael Nordfeldth [Mon, 5 May 2014 17:05:05 +0000 (19:05 +0200)]
Functions should return quickly (cosmetic)
...rather than have long if statements encapsuling everything.
Mikael Nordfeldth [Mon, 5 May 2014 16:59:32 +0000 (18:59 +0200)]
Success debugging was too much noise
Mikael Nordfeldth [Mon, 5 May 2014 15:54:56 +0000 (17:54 +0200)]
UnsupportedMediaException caused excessive debug log
Mikael Nordfeldth [Mon, 5 May 2014 15:48:21 +0000 (17:48 +0200)]
More debugging in Magicsig class verify method
Joshua Judson Rosen [Sun, 12 Jan 2014 20:45:41 +0000 (15:45 -0500)]
Deliver SMS to @-ref'd users who want it, regardless of subscription.
Joshua Judson Rosen [Wed, 30 Apr 2014 04:23:23 +0000 (00:23 -0400)]
Prevent spurious refusals of legitimate notices posted to users via Salmon.
Make the logic match the intent described in the comments.
The intent is clearly "accept notices whenever (A or B or C)", but
the logic implemented was more like "not ((not A) or (not B) or (not C))",
which is a basical boolean algebra fail (each of those ORs need to
become ANDs for double-negation to work).
The practical implication was that, for example, writing a reply
to someone else's notice and including an @-reference to _another_
user on another site to bring them into the discussion would
fail to deliver the notice to the new user because their server
would basically say `oh no, you can't message this user
from someone else's thread' because an earlier check for
the `A' or `C' parts of `(A or B or C)' prevents `B' from
being checked.
cf.: <http://status.hackerposse.com/notice/55846>, which was
refused by the nhcrossing.com server because it didn't know
about <http://sn.jonkman.ca/notice/93724>, even though it would
have passed the later `notice contains a reference to a local user'
check if not for an exception being prematurely thrown.
The whole idea of reporting `which specific check FAILED'
in an `if ANY SUCCEEDS' analysis is just bogus, so nix all of
the distinct ClientExceptions--a single `ALL FAILED' exception
is the only one that makes sense.
Joshua Judson Rosen [Thu, 9 Aug 2012 03:41:02 +0000 (23:41 -0400)]
Make stopdaemons.sh work with on multi-instance servers. So: - Allow specifying a site on the command-line, just like startdaemons.sh. - If a site is specified, kill only its daemons--not all daemons with pid-files in the piddir.
Joshua Judson Rosen [Thu, 9 Aug 2012 03:17:51 +0000 (23:17 -0400)]
Make daemons call setgid() *before* setuid() because doing it the other way around doesn't appear to work, at least on Linux.
Joshua Judson Rosen [Wed, 30 Apr 2014 03:35:46 +0000 (23:35 -0400)]
Autocomplete: don't match non-subscribed group-names.
There's no point, since we can't post/link to them anyway.
Mikael Nordfeldth [Thu, 1 May 2014 13:47:51 +0000 (15:47 +0200)]
Conversations now have URIs that are not URLs
Mikael Nordfeldth [Thu, 1 May 2014 13:25:19 +0000 (15:25 +0200)]
getConversationUrl introduced for linking to conversations