]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
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
Mikael Nordfeldth [Thu, 1 May 2014 12:28:18 +0000 (14:28 +0200)]
Link notice posted time to local representation
Notice class got a 'getLocalUrl' function.
Mikael Nordfeldth [Thu, 1 May 2014 00:47:56 +0000 (02:47 +0200)]
Installer database adjustments
We can't say we officially support PostgreSQL, unfortunately. There
are too many database calls with MySQL specific syntax. This would be
desirable for a 2.0 release, but too much work while maintaining 1.x.
The main difficulty is that we're using PEAR::DB which is aging. If
that's exchanged, maybe we could use PDO or something.
Mikael Nordfeldth [Thu, 1 May 2014 00:15:10 +0000 (02:15 +0200)]
We're not interested in Disqus support.
Mikael Nordfeldth [Wed, 30 Apr 2014 18:44:23 +0000 (20:44 +0200)]
Notice URIs are not necessarily URLs.
Let's use getUrl() for URL retrieval. May throw exceptions, but
only if it's a Notice that cannot be linked like that anyway.
Mikael Nordfeldth [Wed, 30 Apr 2014 18:35:06 +0000 (20:35 +0200)]
wtf is Echo? bah, let's get rid of this crap
Mikael Nordfeldth [Tue, 29 Apr 2014 18:37:58 +0000 (20:37 +0200)]
Fix Direct Message functionality.
Mikael Nordfeldth [Tue, 29 Apr 2014 17:46:58 +0000 (19:46 +0200)]
s/bestUrl/getUrl/ for notices and microapp objects
Mikael Nordfeldth [Tue, 29 Apr 2014 17:45:42 +0000 (19:45 +0200)]
VideoThumbnails failure detection improved.
Mikael Nordfeldth [Mon, 28 Apr 2014 18:26:32 +0000 (20:26 +0200)]
Handle File thumbnail errors better
Mikael Nordfeldth [Mon, 28 Apr 2014 18:12:00 +0000 (20:12 +0200)]
InlineAttachmentList had unnecessary function
Mikael Nordfeldth [Mon, 28 Apr 2014 16:56:45 +0000 (18:56 +0200)]
Minifying javascripts is evil. Let's not do it.
The microformats stuff was unused
Mikael Nordfeldth [Mon, 28 Apr 2014 15:45:21 +0000 (17:45 +0200)]
Datetime representation aligned for microformats2
Read more at http://microformats.org/
Also, tooltip text on time representation for humans has been improved.
Unfortunately no standardised representation (like "RFC850") had 4-digit years.
Mikael Nordfeldth [Mon, 28 Apr 2014 12:08:42 +0000 (14:08 +0200)]
Code cleanup and enabling User object's etc. getUri()
Mikael Nordfeldth [Mon, 28 Apr 2014 12:04:54 +0000 (14:04 +0200)]
getUrl replaces deprecated bestUrl (more to come)
Mikael Nordfeldth [Mon, 28 Apr 2014 10:38:30 +0000 (12:38 +0200)]
EmailAuthentication enabled by default
The login field said "Username or email address" already, so...
Mikael Nordfeldth [Mon, 28 Apr 2014 10:12:06 +0000 (12:12 +0200)]
Better fallback on UnsupportedMediaException
Mikael Nordfeldth [Tue, 22 Apr 2014 10:09:24 +0000 (12:09 +0200)]
File width and height is now properly set for File
Mikael Nordfeldth [Mon, 21 Apr 2014 20:31:13 +0000 (22:31 +0200)]
Be more precise in return array from image scaling
Mikael Nordfeldth [Mon, 21 Apr 2014 19:19:45 +0000 (21:19 +0200)]
Redirect from Attachment_thumbnailAction
Noone should trust an <img/> tag delivered like that anyway.
Mikael Nordfeldth [Mon, 21 Apr 2014 18:39:28 +0000 (20:39 +0200)]
Dynamically generate thumbnails (see full text)
The File object now stores width and height of files that can
supply this kind of information. Formats which we can not read
natively in PHP do not currently benefit from this. However an
event hook will be introduced later.
The CreateFileImageThumbnail event is renamed to:
CreateFileImageThumbnailSource to clarify that the hooks should not
generate their own thumbnails but only the source image. Also it now
accepts File objects, not MediaFile objects.
The thumbnail generation is documented in the source code. For
developers, call 'getThumbnail' on a File object and hope for the best.
Default thumbnail sizes have increased to be more appealing.
Mikael Nordfeldth [Mon, 21 Apr 2014 17:32:08 +0000 (19:32 +0200)]
use intval() instead of floor() for int return type
Mikael Nordfeldth [Mon, 21 Apr 2014 12:31:18 +0000 (14:31 +0200)]
Action->int(...) never replied with integers
Mikael Nordfeldth [Mon, 21 Apr 2014 10:33:41 +0000 (12:33 +0200)]
Better event name (creating thumbnail _source_)
Mikael Nordfeldth [Mon, 21 Apr 2014 09:35:42 +0000 (11:35 +0200)]
Preparing File for dynamic thumbnail generation.
Mikael Nordfeldth [Sun, 20 Apr 2014 14:06:41 +0000 (16:06 +0200)]
File_oembed::saveNew are File::saveNew are static
Also did some non-backwards-compatible (to StatusNet) code cleanup.
Mikael Nordfeldth [Sat, 19 Apr 2014 20:24:40 +0000 (22:24 +0200)]
deprecate Notice::bestUrl() in favor of getUrl()
Mikael Nordfeldth [Sat, 19 Apr 2014 20:20:45 +0000 (22:20 +0200)]
Missing semi colon in showNotice class.
Mikael Nordfeldth [Sat, 19 Apr 2014 20:18:36 +0000 (22:18 +0200)]
OStatus onStartNoticeSourceLink to use exceptions
Mikael Nordfeldth [Sat, 19 Apr 2014 20:13:48 +0000 (22:13 +0200)]
Improve ShownoticeAction remote redirect code
Mikael Nordfeldth [Sat, 19 Apr 2014 20:05:44 +0000 (22:05 +0200)]
Use getUrl() instead of ->url in OembedAction
Mikael Nordfeldth [Fri, 18 Apr 2014 21:53:16 +0000 (23:53 +0200)]
Fixes to URI/URL handling for notices
Mikael Nordfeldth [Fri, 18 Apr 2014 21:36:07 +0000 (23:36 +0200)]
No need for common_notice_uri anymore
Mikael Nordfeldth [Fri, 18 Apr 2014 21:36:01 +0000 (23:36 +0200)]
Handle missing URIs and URLs better
Mikael Nordfeldth [Fri, 18 Apr 2014 21:17:34 +0000 (23:17 +0200)]
Avoid double colon on Notice URI generation
Mikael Nordfeldth [Fri, 18 Apr 2014 21:17:15 +0000 (23:17 +0200)]
Throw exception when we can't get the url for a notice
Mikael Nordfeldth [Fri, 18 Apr 2014 21:06:28 +0000 (23:06 +0200)]
File_thumbnail lacked getUrl function
The only reason it worked was because DB fetches calls to get$varname if
the dataobject has a variable with the specific name. However, it started
blurting out errors that the case must be correct (which would require
'geturl' to be the function name).
Since we probably want to replace DB sometime, we'll just override this
auto-fetching mechanism and use more explicitly defined functions.
Mikael Nordfeldth [Fri, 18 Apr 2014 20:42:01 +0000 (22:42 +0200)]
Set new notice uri to something that's not a URL
Mikael Nordfeldth [Fri, 18 Apr 2014 20:18:11 +0000 (22:18 +0200)]
We get profiles directly, there's no user object anymore
Mikael Nordfeldth [Fri, 18 Apr 2014 09:10:59 +0000 (11:10 +0200)]
Thumbnails are not faded anymore (CSS opacity)
Mikael Nordfeldth [Fri, 18 Apr 2014 09:07:59 +0000 (11:07 +0200)]
Thumbnails are now by default squares of 150px
Mikael Nordfeldth [Fri, 18 Apr 2014 09:07:45 +0000 (11:07 +0200)]
Enable square thumbnailing