Mikael Nordfeldth
f141565104
Allow delete-inactive for gcfeeds
...
Garbage collecting should also allow to clean up leftover database entries.
2015-02-04 16:49:03 +01:00
Mikael Nordfeldth
7cce2e17ff
FavoritePlugin uses getConfigPref for profile setting
2015-02-03 22:02:19 +01:00
Mikael Nordfeldth
3f7a305b2a
$this out of context (use $rcpt)
2015-02-03 21:15:37 +01:00
Mikael Nordfeldth
7666ac34f9
Revert "Notices for faves are already sent as they are notices now."
...
This reverts commit 636d5141e9
.
We want the salmon notifyActivity call
2015-02-03 17:50:21 +01:00
Mikael Nordfeldth
9827e6ad84
The favorite activity is an activity.
2015-02-03 16:53:51 +01:00
Mikael Nordfeldth
636d5141e9
Notices for faves are already sent as they are notices now.
2015-02-03 16:44:13 +01:00
Mikael Nordfeldth
adc4dfc081
Wrong variable name (s/fave/object/)
2015-02-03 16:43:56 +01:00
Mikael Nordfeldth
660e8c6efc
Fave::addNew now calls Notice::saveActivity
...
as a bonus we've fixed several FIXME issues for favorite email notification
and updated parts of the codebase for these activities to a more modern style.
2015-02-03 16:34:11 +01:00
Mikael Nordfeldth
0bcecda177
more activity-like terminology in variable names
2015-02-03 15:12:29 +01:00
Mikael Nordfeldth
1104ea2a0e
Fave insert logging directly in insert()
2015-02-03 14:58:22 +01:00
Mikael Nordfeldth
000b7675d8
Vimeo oEmbed thumbnail host added to whitelist
2015-02-02 11:14:13 +01:00
Mikael Nordfeldth
acd36698b4
A bunch of clientError that were called as serverError
...
Calling serverError with a clientError status code (4xx) means it will
automatically default to Internal Server Error (500) which is in the
server error status code range (5xx). That is undesirable.
2015-01-29 23:35:49 +01:00
Mikael Nordfeldth
acec8b8cf2
Default value false for $force on Ostatus updateAvatar
2015-01-27 14:14:24 +01:00
Mikael Nordfeldth
cc996f58db
Test in Ostatus_profile if avatar is an image before writing to filesystem
...
This clears one FIXME...
We also fix HTTPClient::quickGet() (and a related call in OStatus testfeed.php).
2015-01-27 14:00:39 +01:00
Mikael Nordfeldth
cdd3c52633
Handle groups better in Ostatus_profile->updateAvatar
2015-01-27 13:38:11 +01:00
Mikael Nordfeldth
482f61ac15
OStatusSub should use inherent attributes
...
No need to make several common_current_user calls and then getProfile
directly after that, since we have stuff like $this->scoped.
2015-01-27 13:23:49 +01:00
Mikael Nordfeldth
cf46de6ca7
Ostatus_profile smarter test if avatar exists
...
If you accidentally deleted a remote user's avatar from filesystem,
it'd take until its URL was updated that you got it back. Now it
happens if the local avatar file doesn't exist.
2015-01-26 17:43:09 +01:00
Mikael Nordfeldth
697a00d8e1
Force updateAvatar if desired
2015-01-26 17:26:51 +01:00
Mikael Nordfeldth
7beec74f0c
Differentiate on group and user for WebFinger data
2015-01-26 12:18:35 +01:00
Mikael Nordfeldth
a8e613e508
Animated GIF restructuring, ImageMagick only used for resizing animated sequences.
2015-01-25 23:00:00 +01:00
Mikael Nordfeldth
2a7d45c986
No need for ImageMagick to detected animated GIF
2015-01-25 22:45:25 +01:00
Mikael Nordfeldth
3f65bf45ab
No reason to stop the event
2015-01-25 22:32:01 +01:00
Mikael Nordfeldth
4dd6d7869e
Maybe we can detect animated files in core
2015-01-25 22:11:46 +01:00
Mikael Nordfeldth
470971cf47
File_thumbnail uses file_id as PRI
2015-01-25 13:13:01 +01:00
Mikael Nordfeldth
12058c30b4
Managed_DataObject->updateWithKeys throws its own exception
2015-01-25 12:54:08 +01:00
Mikael Nordfeldth
4917a422a1
updateKeys -> updateWithKeys (w/ functionality)
2015-01-25 12:07:26 +01:00
Mikael Nordfeldth
0e0783ee8c
Regexp for Oembed domain matching
2015-01-25 11:18:57 +01:00
Mikael Nordfeldth
85e644d647
Remote thumbnail fetching from trusted sources
...
So far we only trust i.ytimg.com for YouTube thumbnails, but you can
configure the Oembed plugin in config.php by setting the plugin's class vars:
addPlugin('Oembed', array('param'=>'value', ...));
Some might think this is a security risk or privacy invasive, but as the Oembed
script is already calling remote sites to get information _about_ linked media,
the way to stop it is to disable the Oembed plugin. However it is not certain
it has been migrated out into a plugin properly yet. But try it if you want to.
2015-01-25 02:34:40 +01:00
Mikael Nordfeldth
999175d741
File_oembed::byFile to avoid littering with getKV
2015-01-25 02:32:04 +01:00
Mikael Nordfeldth
aeaee388bf
Store remote magicsig public keys locally
2015-01-24 13:06:09 +01:00
Mikael Nordfeldth
2d0155a50f
Added Magicsig onProfileDeleteRelated
2015-01-24 12:47:39 +01:00
Mikael Nordfeldth
975ce6d83e
Documentation update (clarifying need for php5-gmp in comment)
2015-01-24 12:22:29 +01:00
Mikael Nordfeldth
cce808b27c
const'ifying bits and sigalg
...
Also we should move away from 1024 bit keys as soon as we can.
2015-01-24 12:18:55 +01:00
Mikael Nordfeldth
bf2f1c23b7
Documentation update for ImageMagick
2015-01-24 11:52:40 +01:00
Mikael Nordfeldth
d1a1eefa38
resize_animated declared public in ImageMagickPlugin
2015-01-24 11:36:16 +01:00
Mikael Nordfeldth
82b335dc2c
MapstractionPlugin didn't handle notices without URLs
2015-01-23 12:41:51 +01:00
Mikael Nordfeldth
f814415386
RealtimePlugin didn't handle notices without URLs
2015-01-23 12:40:37 +01:00
Mikael Nordfeldth
99b1a6f576
user is a protected property in UAS/AtomUserNoticeFeed
...
The bug made it impossible to backup with Favorite ;)
Thanks postblue for reporting.
2015-01-23 11:58:42 +01:00
Mikael Nordfeldth
3a0136fe1f
Replace file_get_contents with HTTPClient in testfeed
2015-01-22 11:30:36 +01:00
Mikael Nordfeldth
c1ad416f12
AntiBrute plugin, delay + log multiple fail logins
2015-01-21 23:35:48 +01:00
Mikael Nordfeldth
25911368c8
GIF support (I know you love it)
...
make sure you have php5-imagick and then enable with addPlugin('ImageMagick')
2015-01-21 16:43:46 +01:00
Mikael Nordfeldth
e6fe996661
NewmessageAction lacked the $form property
2015-01-21 13:02:46 +01:00
Mikael Nordfeldth
d492b74e42
holy crap, file_put_contents got args in wrong order
2015-01-18 02:57:08 +01:00
Mikael Nordfeldth
5d9e9aaaf5
Keep the old error message on updateAvatar
2015-01-18 02:48:39 +01:00
Mikael Nordfeldth
010824c4b5
Use HTTPClient to download avatar
...
also make updateAvatar public so we can call it from update_ostatus_profile.php
2015-01-18 02:44:55 +01:00
Mikael Nordfeldth
0499736bb4
Loose_Ostatusprofile::updateAvatar was identical to Ostatus_profile
2015-01-18 02:39:08 +01:00
Mikael Nordfeldth
420eea3f24
No need to say we're finished working
2015-01-17 13:38:59 +01:00
Mikael Nordfeldth
f5efbd8037
twitPic no longer exists/is active
2015-01-17 12:07:57 +01:00
Mikael Nordfeldth
092dfee1c6
spring cleaning in Oembed helper list
...
Fixed http -> https and removed some dead services
2015-01-17 12:06:08 +01:00
aroquen
2b78eb1735
Reduce tag margin in bookmark notice
2015-01-17 00:39:07 +01:00
aroquen
22df2fa40f
Move bookmark's tags after description
2015-01-17 00:39:07 +01:00
aroquen
20457d4389
Better frame and spacing for bookmark title
2015-01-17 00:39:07 +01:00
Mikael Nordfeldth
ba9abb3c57
Add nohub config setting to allowed non-PuSH feeds
2015-01-16 01:10:55 +01:00
Mikael Nordfeldth
19f3cc112f
removed debugging lines for FeedPoller
2015-01-15 21:14:07 +01:00
Mikael Nordfeldth
8594a2ba16
FeedPoller plugin, for hubless feeds
2015-01-15 21:13:13 +01:00
Mikael Nordfeldth
57d8eb8a53
Ensuring unknown profiles in salmon slaps work again
2015-01-13 13:43:35 +01:00
Mikael Nordfeldth
db7154c63b
Abort on failure instead of return early success
2015-01-13 13:18:57 +01:00
Mikael Nordfeldth
8749c470ca
ArrayWrapper spookiness, must make sure it's a Notice there...
2015-01-12 12:06:19 +01:00
Mikael Nordfeldth
66044b7782
ensureActivityObjectProfile is more thorough than createAct...
2015-01-12 11:47:21 +01:00
Mikael Nordfeldth
aca5ff1b23
Found some unreachable code in Favorite
...
The portion after StartAtomPubNewActivity would never be reached since
Favorite handles that activity through ActivityHandlerPlugin nowadays.
So I cleaned it up and followed a couple of paths, making stuff prettier.
2015-01-12 02:23:23 +01:00
Mikael Nordfeldth
73669ed308
ensureProfile already done and stored in $this->oprofile
2015-01-12 02:01:26 +01:00
Mikael Nordfeldth
d8f4de450c
Support for updated aliases
...
will verify unknown aliases against old ones if the new identifies as a
previously recognized URI.
Steps:
1. Check the newly received URI. Who does it say it is?
2. Compare these alleged identities to our local database.
3. If we found any locally stored identities, ask it about its aliases.
4. Do any of the aliases from our known identity match the recently introduced one?
Currently we do _not_ update the ostatus_profile table with the new URI.
2015-01-10 02:07:39 +01:00
Mikael Nordfeldth
51f97c7e84
section control over their notice lists + HTML id stuff
2015-01-09 15:46:35 +01:00
Mikael Nordfeldth
d32fef6039
Merge commit 'refs/merge-requests/28' of https://gitorious.org/social/mainline into merge-requests/28
2015-01-08 16:48:42 +01:00
Joshua Judson Rosen
f246dd4645
OStatusPlugin: fix ensureProfile catch-22 in onCheckActivityAuthorship()
...
Use profile URL (not URI), like elsewhere.
Profile::getUri() doesn't actually do anything useful, here--
it does nothing unless a plugin (like OStatus) is already
able to resolve the Profile into a backend object (e.g.: an Ostatus_profile).
If we might not already have an Ostatus_profile for a given Profile,
then we need to use $profile->getUrl() and fetch the data from that URL.
2014-12-30 23:56:33 -05:00
Mikael Nordfeldth
c93b21d9f6
Columns too narrow in mobileprofile
2014-12-10 12:28:38 +01:00
Mikael Nordfeldth
d3a8896b2a
Merge commit 'refs/merge-requests/26' of https://gitorious.org/social/mainline into merge-requests/26
2014-12-09 13:45:15 +01:00
Joshua Judson Rosen
f71eeaee5a
OStatus/scripts/update-profile-data.php: print updated fullnames
...
Now that we can actually update them again.
2014-12-08 22:06:29 -05:00
Mikael Nordfeldth
812d1eead9
Stronger typing in Ostatus_profile
2014-12-08 19:52:00 +01:00
Mikael Nordfeldth
e7c6c6fc76
Merge commit 'refs/merge-requests/19' of https://gitorious.org/social/mainline into merge-requests/19
2014-12-06 20:18:52 +01:00
Hannes Mannerheim
b81857656f
delete groups from groups directory, for admins
2014-12-02 15:31:27 +01:00
Mikael Nordfeldth
72d1c3c73e
fetch conversation URI in processPost, not processShare
2014-11-27 16:51:21 +01:00
Mikael Nordfeldth
1b449ea705
scripts/upgrade.php would fail if Profile_prefs did not exist
...
A checkschema.php run would've done it, but that would require an
additional step to our upgrade procedure.
2014-11-27 14:46:10 +01:00
Mikael Nordfeldth
bdb4a41696
Use remote conversation URI info to stitch convos together
...
If we know the URI sent from the remote party, and we don't know the
notice it is replying to, we might still be able to put it in the same
conversation thread!
2014-11-27 14:06:10 +01:00
Joshua Judson Rosen
cff8c462da
sendemailsummary.php: correct path to INSTALLDIR
...
So that we can actually find commandline.inc.
This should have been updated when the files in the EmailSummary tree
where moved down a level into subdirectories.
2014-11-24 20:28:31 -05:00
Mikael Nordfeldth
8056097478
Try to lookup the profile if we don't know it yet
2014-11-24 23:50:42 +01:00
Mikael Nordfeldth
720c2c9ff2
Ostatus_profile->checkAuthorship returns Profile
...
not Ostatus_profile
2014-11-24 23:40:06 +01:00
Mikael Nordfeldth
3bf1478f97
Bad parameter count for checkAuthorship
...
At the same time we change this to call ActivityUtils::checkAuthorship
instead to let the retrieval/verification go through event handling.
rozzin (Joshua Judson Rosen) found this error. Thanks.
2014-11-24 12:49:20 +01:00
Joshua Judson Rosen
4b875e0fd0
Fix OStatus groups by making Ostatus_profile::localProfile() work for groups
...
We need to look up a feed profile for HandleFeedEntryWithProfile events,
regardless of whether they're an OStatus user, group, or something else;
this is the least hairy way of doing that--the alternative being
to keep spreading the same logic all over the calling code.
Theoretically, this change might allow OStatusGroups to be recorded
as the authors of activities if they pass through any authorless
activities; but that's why we have checkAuthorship().
2014-11-24 12:30:37 +01:00
Joshua Judson Rosen
d2e1a8c706
Ostatus_profile::checkAuthorship(): throw ServerException when bogus non-authorship is detected
...
Similarly to what ActivityUtils::checkAuthorship does; try to ensure
that activities from ambiguous OStatus feeds (groups and peopletags)
that require explicit authorship don't get in without explicit authors.
2014-11-24 12:29:41 +01:00
Joshua Judson Rosen
2d7804b88f
UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl()
...
getUrl() doesn't work on all notices anymore.
2014-11-23 23:28:30 -05:00
Joshua Judson Rosen
bf0f22744d
UserEmailSummaryHandler: Update notice-fetching logic
...
InboxNoticeStream::getNotices() no longer returns an ArrayWrapper;
just fetch notices normally via $notice->fetch(), so that
we can actually get the top notice-ID and update email_summary_status
accordingly--and not mail about the same notices repeatedly.
2014-11-23 23:28:28 -05:00
Joshua Judson Rosen
2f506dde28
UserEmailSummaryHandler: correct instantiation of InboxNoticeStream
...
It only takes a single Profile argument....
2014-11-23 23:28:27 -05:00
Mikael Nordfeldth
496acdc7d9
normalizing acct: URI just to be sure
2014-11-16 18:29:05 +01:00
Mikael Nordfeldth
33e7562210
Some unnecessary/faulty includes fixed in DM plugin
2014-11-07 16:33:19 +01:00
Mikael Nordfeldth
98eba61a7e
Lost file with MessageCommand class.
2014-11-07 16:25:40 +01:00
Mikael Nordfeldth
aedfb6a8dd
FavoritePlugin calls CommandInterpreter::split_arg
...
The last commit found a bug that a previous move of the FavCommand
into a plugin called $this in FavoritePlugin instead of the instance
of a CommandInterpreter class. Now that call is statically defined in
CommandInterpreter and appropriately called in FavoritePlugin.
2014-11-07 16:24:14 +01:00
Mikael Nordfeldth
046d070ad4
MessageCommand moved to DirectMessage plugin
2014-11-07 16:23:34 +01:00
Mikael Nordfeldth
6ac2a5b8ff
&$supported in CommandSupportedAPI event is boolean
...
not array as we specified here
2014-11-07 16:13:45 +01:00
Mikael Nordfeldth
38d9b4d3a4
UserActivityStream export of DMs moved to plugin
2014-11-07 16:08:16 +01:00
Mikael Nordfeldth
d493fd0772
DirectMessage API functions moved to plugin
2014-11-07 16:00:27 +01:00
Mikael Nordfeldth
68143ff916
DirectMessage moved into a plugin, not done yet
...
We still have to move some API calls into the new plugin.
2014-11-07 15:53:35 +01:00
Mikael Nordfeldth
faae9d069a
We're using URLMapper, not Net_URL_Mapper
2014-11-07 15:24:05 +01:00
Mikael Nordfeldth
29ac42addd
Diaspora public key published in WebFinger
2014-11-06 21:05:31 +01:00
Mikael Nordfeldth
5e4f93cc7d
Conversation link as default, permalink for /notice
2014-11-05 19:34:39 +01:00
Mikael Nordfeldth
c263bbcca7
EventPlugin now uses event handling instead of NLI adapter
2014-10-27 14:24:16 +01:00
Mikael Nordfeldth
18c6a0bf35
Show poll results also to non-logged in visitors
2014-10-26 23:17:58 +01:00
Mikael Nordfeldth
fb1b80c915
Updating TwitterBridge README to be clearer on installation
2014-10-26 23:17:43 +01:00
Mikael Nordfeldth
636ad44f0b
BookmarkListItem removed in favor of event-driven rendering
2014-10-26 22:07:16 +01:00
Mikael Nordfeldth
f69f713360
PollListItem freed from noticeListItemAdapter clutches
...
In the future, use events for formatting microapp notices, more specifically
through the plugin's function "showNoticeContent" or similar, which is called
from MicroAppPlugin, which is extended from ActivityHandlerPlugin.
2014-10-26 14:48:02 +01:00
Mikael Nordfeldth
39b5e08d44
Possible XSS scenario when posting Bookmarks
2014-10-25 15:00:29 +02:00
Mikael Nordfeldth
048af5ac73
Can't use empty on a function call
2014-10-25 14:29:27 +02:00
Roland Haeder
3d031951f9
Fixed syntax error. :-(
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-10-25 14:26:22 +02:00
Roland Haeder
db704b5d10
Fixed type-hints + added assert + method getGroup().
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-10-25 14:26:18 +02:00
Roland Haeder
419c2cd5b3
Some fixes/improvements - added getter getGroup() for https://bugz.foocorp.net/T44 - added type-hints in method signatures
...
---------------------------------------------------------
WARNING: Some plugins attempt to get a property 'group' from (basicly) a Menu
class which does NOT have such property. This badly needs fixing.
---------------------------------------------------------
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-10-25 14:25:12 +02:00
Mikael Nordfeldth
57b5e2483d
A little bit more debugging.
2014-10-25 14:23:15 +02:00
Hannes Mannerheim
8dba84bd76
i had introduced a bug... userdirectory didn't work when logged out
2014-10-21 02:57:52 +02:00
Hannes Mannerheim
0f87edd9f4
remove dupes when infinitescrolling, and add infinitescroll to user lists and userdirectory also
2014-10-20 16:34:37 +02:00
Hannes Mannerheim
4d4a0491f1
groups/all didn't work, also fixed pagination in directory/users, and a convenient delete-button for admins
2014-10-20 16:24:53 +02:00
Hannes Mannerheim
e3bb5e1df9
do favorites from default like in API
...
not quite sure about this, but the deleted code in this commit created
activity notices that we couldn't turn off in config.
2014-10-20 16:17:40 +02:00
Mikael Nordfeldth
d0401b19a5
statusnet/gnu-social merge request 22
2014-10-10 20:52:09 +02:00
Aqeel Zafar
a7ffc9e14e
Fix T46 Blog Plugin is broken
...
Adds newFormAction() in Blog Plugin to redirect to correct action.
2014-09-29 18:06:54 +05:00
Mikael Nordfeldth
78781050b3
Mats Sjöberg's merge request no.5 from Gitorious
2014-09-25 08:41:25 +02:00
Mikael Nordfeldth
ee41bc560c
Updated LDAP2 extlib to latest version.
2014-09-25 08:34:55 +02:00
Mikael Nordfeldth
a6545d09b8
Added a return true statement for an event handler
2014-09-25 08:32:10 +02:00
Silke Meyer
731d619c1e
"return parent" breaks ldap plugin, there's no parent
2014-09-17 17:15:32 +02:00
Mikael Nordfeldth
7e47026085
QnA layout fix, still no answer-action
...
There is required to be an answer-action element for the threaded view
so we can fetch that action value to an AJAX call which fetches the form.
That is: Currently the "Your answer..." placeholder will fetch a blank URL.
2014-08-24 13:34:01 +02:00
Mikael Nordfeldth
f851d3dbf9
tabs to spaces
2014-08-24 13:33:52 +02:00
Roland Haeder
e1eadbcf4f
Fixes for making Meteor working with HTTPS.
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-08-24 13:24:42 +02:00
Roland Haeder
c1a0132cab
Added missing index declarations.
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-08-24 13:21:59 +02:00
Roland Haeder
3ec64116a4
This JavaScript file is located in js/ - Fixed paths for all targets.
...
Signed-off-by: Roland Haeder <roland@mxchange.org>
2014-08-24 13:10:19 +02:00
Mikael Nordfeldth
63b61ea2d1
QnA fixes from chimo
2014-08-24 13:05:49 +02:00
Mikael Nordfeldth
3cdc313429
Poll fixes by chimo
2014-08-24 13:01:13 +02:00
Mats Sjöberg
376e63db77
TwitterBridge should not try to send replies to tweets back to Twitter if user hasn't selected to import tweets.
2014-08-21 21:04:06 +03:00
chimo
3edc200b26
PollListItem: Use showNotice args
2014-08-17 13:39:19 -04:00
chimo
0a95cdfa88
Added adaptNoticeListItem and QnAListItem
2014-08-17 13:37:43 -04:00
chimo
850d687901
Added adaptNoticeListItem and PollListItem
2014-08-17 13:33:07 -04:00
Mikael Nordfeldth
9933c00c4f
TwitterBridge PHP require_once paths now relative
2014-08-06 09:29:47 +02:00
Mikael Nordfeldth
a9676f5b2b
RSVP fromNotice now throws NoResultException
2014-08-06 09:23:42 +02:00
Mikael Nordfeldth
9018fd75c6
JOINs and FOLLOWs would have null titles in Activity representation of notices
2014-07-30 00:21:00 +02:00
Mikael Nordfeldth
8674b51144
Activity plugin fix (LeaveListItem unused)
2014-07-29 10:43:58 +02:00
Mikael Nordfeldth
78dc376f01
Moved some FAVORITE handling from Activity plugin to Favorite
2014-07-28 10:58:24 +02:00
Mikael Nordfeldth
509f31af0e
Favorite plugin now "extends" Activity on NoticeAsActivity
...
Got this mainly from my patches to FreeSocial. The idea is to migrate
also the Note activity to a plugin and have everything be handled as
events, only filling out the basic "context" stuff in the Notice class.
2014-07-28 10:02:53 +02:00
Mikael Nordfeldth
6e481d35ed
Start/End NoticeAsActivity modifications
...
More 'scoped' profiles and typing to the functions.
Also, there's no need to send an object as a reference.
2014-07-28 09:40:07 +02:00
Mikael Nordfeldth
eb2f93ad2b
More use of Profile, less User
2014-07-28 09:34:46 +02:00
Mikael Nordfeldth
d11ce2ef3b
Consistently use "email-notify_fave" syntax for preference
2014-07-27 23:25:49 +02:00
Mikael Nordfeldth
2d0c7c2c99
ensureWebfinger was never complete in StatusNet. Worked a bit on it.
2014-07-27 23:08:02 +02:00
Mikael Nordfeldth
bb1ac66d74
Cronish plugin minor debugging text fixes and so
2014-07-21 09:51:28 +02:00
Mikael Nordfeldth
9a2e3a52c9
Don't access HTTP_USER_AGENT if it doesn't exist
2014-07-15 20:38:58 +02:00
Mikael Nordfeldth
ea8cb21e98
Allow exception to be thrown if saveActivityObject fails
2014-07-15 14:12:39 +02:00
Mikael Nordfeldth
c96f0aa30f
More Activity-based reasoning for saveActivity in Notice
...
If we can, get the activity ID from the activity itself, instead of the
supplied $options array.
2014-07-14 23:54:58 +02:00
Mikael Nordfeldth
31d53ede91
Bad variable reference in Fave class
2014-07-14 23:37:28 +02:00
Mikael Nordfeldth
eb955fe629
"Notice posted" message in Ajax title for NewnoticeAction
2014-07-14 17:11:54 +02:00
Mikael Nordfeldth
b0c4a35940
Local favoriting fills out content to saveActivity
2014-07-14 14:05:47 +02:00
Mikael Nordfeldth
ae62b91940
Unifying HTML stripping functions to common_strip_html
2014-07-14 13:52:23 +02:00
Mikael Nordfeldth
ac44695c44
Put text content into Favorite activities/activityobjects
2014-07-14 13:25:26 +02:00
Mikael Nordfeldth
5ebe01ba36
NoticeStream fixes regarding non-post verbs
2014-07-14 00:59:04 +02:00
Mikael Nordfeldth
0a20abf1d8
Email notify-on-fave moved to Profile_prefs (run upgrade.php)
2014-07-13 19:46:40 +02:00
Mikael Nordfeldth
933bf0b026
Start and End EmailSaveForm events now take a scoped profile
2014-07-13 15:42:15 +02:00
Mikael Nordfeldth
c8873de08b
Start and End EmailFormData events include current profile
2014-07-13 15:33:44 +02:00
Mikael Nordfeldth
a9bfa1979d
Don't send favorite notifications unless the user wants it.
2014-07-13 12:58:52 +02:00
Mikael Nordfeldth
6f593a79d4
making more sense in mail_notify_fav
...
We should probably get rid of this function, at least storing everything in
lib/mail.php - but until then, at least let's make it more understandable.
2014-07-13 12:56:43 +02:00
Mikael Nordfeldth
0e8148af86
When modplus.css got moved, it should've re-related an image path
2014-07-07 01:40:33 +02:00
Mikael Nordfeldth
2eea7a2d4b
Do proper Activity-plugin based mention notification
2014-07-07 01:15:43 +02:00
Mikael Nordfeldth
aadc7398dc
ModPlus and some layouting issues regarding fixes
2014-07-06 01:37:31 +02:00
Mikael Nordfeldth
fffacaa27c
FavorAction now uses Notice::saveActivity
2014-07-06 01:37:03 +02:00
Mikael Nordfeldth
aa33b7f21c
Fave does not carry a type
...
it did in FreeSocial, where I copied my code from.
2014-07-05 16:28:09 +02:00
Mikael Nordfeldth
57a2d7a0e2
Bad ActivityObject generation of Fave
2014-07-05 00:15:22 +02:00
Mikael Nordfeldth
ffb9d7ad3f
Rewriting code for notice representation
...
Getting rid of NoticeListItemAdapter, putting more into ActivityHandlerPlugin
and relying on plugins to handle rendering code of the content. This gives us
a lot more structure and consistency in notice structure and allows activity
plugins to stop rendering certain kinds of notices more easily.
There should also be a property for an ActivityHandlerPlugin class to avoid
rendering notices in the ordinary stream, so we don't have to overload stuff.
2014-07-04 14:14:49 +02:00
Mikael Nordfeldth
eda69cabaf
Remove Ostatus_profile when releted Profile is deleted
2014-07-04 11:45:42 +02:00
Mikael Nordfeldth
4b40d6bb2a
TagprofileAction fiddled with, now doesn't require OStatus override
...
But it still doesn't quite work properly, so a lot of work is necessary for this.
2014-07-03 14:02:21 +02:00
Mikael Nordfeldth
b63f6e949c
Converted all ActivityObject::fromProfile to $profile->asActivityObject
2014-07-03 10:51:36 +02:00
Mikael Nordfeldth
c44146d6f8
Favorites are now being stored from activities
2014-07-02 18:38:19 +02:00
Mikael Nordfeldth
2e6a32c7be
Most of the activityobject-saving for Favorite implemented
2014-07-02 11:38:55 +02:00
Mikael Nordfeldth
b66ec247db
Caching fixes for Fave class
2014-07-02 11:38:51 +02:00
Mikael Nordfeldth
9f4bcbad8a
checkAuthorship events, Ostatus_profile rewrite to handle it
...
Lost dependency of OStatus plugin for lib/microappplugin.php, whoo!
also noting which plugins should be upgraded to new saveActivity support.
Favorite plugin won't work with the new system just yet, it doesn't have
the necessary functions to extract activity objects, but that's coming
in the next (few) commits.
2014-07-02 11:38:45 +02:00
Mikael Nordfeldth
acb07ef52f
Added saveActivity method to Notice class
...
saveActivity will accept an Activity which gets parsed and saved through
plugins. So when an ActivityHandlerPlugin (such as Favorite will be soon)
gets a feed to save, this will be the function called instead of saveNew.
2014-07-02 11:38:37 +02:00
Mikael Nordfeldth
687f8ab42c
GET, HEAD, DELETE are strings not constants
2014-07-02 11:38:27 +02:00
Mikael Nordfeldth
38bea34562
Moved functions into ActivityHandlerPlugin from MicroAppPlugin
...
Dummy functions in Favorite plugin so far
2014-07-02 11:37:46 +02:00
Mikael Nordfeldth
d0da552722
SalmonAction and extensions simplified
2014-06-28 20:33:09 +02:00
Mikael Nordfeldth
138d26d488
Favorite "aside"-sections moved, also small fixes left from before
...
Action now has 'isAction' which compares the loaded Action with names
of classes in an array (added without the 'Action') to its own type.
2014-06-28 16:09:46 +02:00
Mikael Nordfeldth
7e597ea7cc
More Favorite pluginification (favecount, cache, menus(favecount, cache, menus))
2014-06-28 14:03:30 +02:00
Mikael Nordfeldth
c137ead909
Confusing documentation and tooltip texts in Bookmark
2014-06-28 13:02:52 +02:00
Mikael Nordfeldth
fcdd061b4f
pluginified most of hasFave, getFaves and related calls
...
The code is now more event-driven when it comes to rendering notices
and their related HTML elements, since we can't have direct calls from
core to a plugin.
lib/activitymover.php has a function to move a Favorite activity which
will not happen now. The move must be pluginified and performed as an
event which plugins can catch on to.
2014-06-27 14:09:02 +02:00
Mikael Nordfeldth
c4037a7549
Moved Favorite EVENTS into plugin folder text file
2014-06-24 16:47:44 +02:00
Mikael Nordfeldth
db7cc7fa75
Favorite functionality put into plugin (not done yet)
...
Now we have to fix any code in the core which directly uses the Fave class
or any other favorite stuff, since it is pluginised and thus might not be
available on some installations.
2014-06-24 15:58:53 +02:00
Mikael Nordfeldth
c74dc15173
DiscoveryHints gets microformats2 parsing abilities
2014-06-24 01:27:03 +02:00
Mikael Nordfeldth
55418685c4
DiscoveryHints now properly returns hcard url
2014-06-23 20:51:37 +02:00
Mikael Nordfeldth
41a233f106
ModPlus available also for non-logged in users.
2014-06-23 20:30:00 +02:00
Mikael Nordfeldth
725af5edd0
Event listing boolean logic error
2014-06-23 20:22:15 +02:00
Mikael Nordfeldth
4f59abea9a
don't show ModPlus for group profiles
2014-06-23 19:08:15 +02:00
Mikael Nordfeldth
abcbca5a94
Group listing in Directory plugin works again
2014-06-23 19:02:47 +02:00
Mikael Nordfeldth
faa12e63c0
No nickname in profile listing
2014-06-23 18:59:32 +02:00
Mikael Nordfeldth
af02f445e4
Event cache clearing bug
2014-06-23 14:23:44 +02:00
Mikael Nordfeldth
703443f152
Event upgraded to microformats2
2014-06-23 14:20:06 +02:00
Mikael Nordfeldth
658c6ab9a8
RSVP stricter typing
2014-06-23 14:16:34 +02:00
Marcel van der Boom
42104612bd
Make sure the Attention::saveNew does not cause an exception so queue items get removed
...
It's less of a problem that one queue-item does not get handled, attention wise,
than that the queue keeps filling up. The typical error raised here is 'already exists'
so it's not even the case that the item won't get handled (it already has been).
The real problem is that the queue_item table accepts duplicates (content-wise) which it
should not.
2014-06-22 17:22:04 +02:00
Mikael Nordfeldth
414a95a784
Initial move towards microformats2
...
No validation has been attempted yet. Lots of changes left. This
is visibly not (very) different from the previous CSS layout. But
some simplifications have been made.
Might cause issues with local changes to themes and CSS. Also maybe
javascript which depends on certain legacy microformats elements.
The move to microformats2 is motivated by the announcement that all
microformats should be migrated to version 2, as of 2014-06-20 at:
http://microformats.org/2014/06/20/microformats-org-turns-9-upgrade-to-microformats2
2014-06-22 17:11:04 +02:00
Mikael Nordfeldth
e4f1c77d6b
showAvatar functions deduplicated into Widget class
2014-06-21 23:25:50 +02:00
Mikael Nordfeldth
de53e74f40
Proper HTTP status codes for WebFinger search miss
2014-06-04 12:59:58 +02:00
Mikael Nordfeldth
6d0ac21185
Return 404 on resource-not-found for WebFinger
2014-06-04 12:46:06 +02:00
Mikael Nordfeldth
d350a20e1f
Less verbose debugging (also don't log private keys)
...
Magicsig private keys were logged. That's probably not a good thing.
MagicEnvelope full XML entries no longer spam the log either.
2014-06-03 12:53:04 +02:00
Mikael Nordfeldth
aaef11077d
Default of Magicsig keypair toString should be secure
...
Prevent crappy coders from leaking private keys.
2014-06-03 12:51:52 +02:00
Mikael Nordfeldth
c99d4eddb1
Moved Poll CSS into the plugin directory
2014-06-03 11:38:40 +02:00
Mikael Nordfeldth
9a19588ac9
Moved QnA CSS into the plugin directory
2014-06-03 11:36:32 +02:00
Mikael Nordfeldth
e6dcb0c40e
Moved Event CSS into the plugin directory
2014-06-03 11:34:39 +02:00
Mikael Nordfeldth
a7531ca5c7
Moved Bookmark CSS into the plugin directory
2014-06-03 03:08:14 +02:00
Mikael Nordfeldth
0bc122ff58
Magicsig::generate is now static
...
This also fixes a problem with "initial salmon slap", which was a
problem for newly registered accounts which would have their first
salmon slap fail to distribute since there was a problem with Magicsig
keys. Apparently we have to re-read them with importKeys so the
Crypt_RSA objects publicKey and privateKey match later instances of them.
I think it may have been that generate() doesn't specify a signatureMode,
but I leave experimentation of that to the future.
2014-06-02 21:50:40 +02:00
Mikael Nordfeldth
537dff7987
Salmon posts can only be made for local users. More typing!
...
Since we of course don't have the remote party's private keys anyway.
I made some small fixes in Magicsig class too, removing unnecessary code.
2014-06-02 19:46:42 +02:00
Mikael Nordfeldth
2cd25039af
Quick-return is more comprehensible than long if statements
2014-06-02 19:37:06 +02:00