Augier
2ce98b49d7
Fix issue #4416
...
Conflicts:
spec/helpers/notifier_helper_spec.rb
2014-10-16 23:27:48 +02:00
Jonne Haß
8280556a47
Introduce message renderer
...
This new class replaces all existing server side message
rendering helpers and is the new global entry point for such
needs. All models with relevant fields now expose an instance
of MessageRenderer for those. MessageRenderer acts as
gateway between the existing processing solutions for markdown,
mentions and tags and provides a very flexible interface for
all output needs. This makes the API to obtain a message
in a certain format clear. As a result of centralizing the
processing a lot of duplication is eliminated. Centralizing
the message processing also makes it clear where to change
its behaviour, add new representations and what options
are already available.
2014-03-15 17:16:17 +01:00
Jason Robinson
e665ebdab1
Fix posting to Twitter by correctly catching over limit exception ( #4627 ). Also when doing a retry, make smaller cuts to max characters
2013-12-15 22:01:09 +02:00
Jonne Haß
eea9467846
refactor twitter service model
2013-09-30 10:13:14 +02:00
Jonne Haß
f4169d7f30
Merge pull request #4384 from andrewcsmith/bug/4211-twitter-should-not-cut-links
...
Fixed problem where the add_post_link method would truncate the status update in the middle of a link
2013-08-11 00:25:12 +02:00
Andrew Smith
65a14ccc2c
Fixed problem where the add_post_link method would truncate the status update in the middle of a link. This led to sending Twitter broken links.
...
Refactored :extract_truncated_link method
Removed complicated while loop in avoiding cutting off links, using refactoring from MrZYX
2013-08-10 14:40:53 -07:00
goobertron
8bffdb873a
Updated Facebook character limit.
2013-08-10 00:18:49 +01:00
Andrew Smith
2bb6bc8eef
Added Wordpress service functionality,
...
for cross-posting to OAuth-enabled Wordpress.com or Jetpack-enabled Wordpress.org blogs.
Added model for Wordpress service
Added very very basic Wordpress cross-posting functionality.
Added markdown support to post body
Fixed Wordpress::MAX_CHARACTERS problem
cleanup
Added default settings for Wordpress OAuth
Added default settings for Wordpress OAuth
Added Wordpress to configured services spec.
changelog changes
2013-08-04 07:46:56 -07:00
Meitar Moscovitz
7d40fd1add
Delete cross-posted Tumblr posts when user deletes their Diaspora post.
2013-08-03 04:23:22 -04:00
Ruxton
3c605c47e0
Fix error in facebook service delete_post
...
Add spec coverage for FB delete_post
2013-07-31 14:23:13 +02:00
Jason Robinson
3fa9f6414d
Fix Twitter crossposting ( #2758 ). Refactor some service posting related code.
2013-06-08 17:38:07 +03:00
Ruxton
48b48470bc
Service.delete_post now more generic, for future implementations
...
Service.delete_post now accepts post to be more generic and supports deleting post from any service that overrides delete_post(post)
2013-05-20 12:19:39 +08:00
Ruxton
ba0e2509c9
Twitter service removes status from twitter when post is revoked
2013-05-20 11:00:49 +08:00
Jonne Haß
3fc3b249e7
End the require mess
...
* Rename and reorganize post fetcher to fix autoloading, also let it use
Faradays default connection so we get nice redirects
* Add initializer to load libs at a central place
* added lib dir to autoload_once paths to increase thread safety
* Moved lib/exceptions.rb to lib/diaspora/ to conform namespacing
2013-03-21 23:37:53 +01:00
Jason Robinson
affa713616
If post has photos, always include url in post to Facebook to stay consistant with other servies, fixes #3706
2013-03-10 08:15:12 +02:00
L3MNcakes
1120cba5f0
Issue #3939 : Posts to Facebook do not delete
2013-02-18 18:21:59 +00:00
Jason Robinson
48a332f871
Remove by default markdown formatting from posts done via service, currently only used by Twitter. Remove markdown also from Facebook posts.
2012-11-09 00:04:49 +02:00
Jason Robinson
7fafabdb60
Only include url to post for twitter when post exceeds maximum length or contains photos
2012-11-03 23:25:19 +02:00
Jonne Haß
2a45470232
Merge branch 'feature/fix-facebook-public-posts' of git://github.com/jaywink/diaspora into feature/fix_services
...
Conflicts:
Changelog.md
app/models/services/facebook.rb
spec/models/services/facebook_spec.rb
2012-11-02 11:31:47 +01:00
Jason Robinson
e974d2934f
Always use basic Facebook Graph API to post messages, fixes public posts. Remove unnecessary Facebook opengraph config items
2012-11-02 00:23:33 +02:00
Jonne Haß
5a70311fe7
update and fix services
2012-10-25 17:54:18 +02:00
Jonne Haß
89c1fd5f7f
query the set url only through #pod_uri in the app
2012-09-26 20:19:37 +02:00
Jonne Haß
2a4db54db9
New configuration system
...
* Throw away old system
* Add new system
* Add new example files
* Replace all calls
* add the most important docs
* Add Specs
* rename disable_ssl_requirement to require_ssl
* cloudfiles isn't used/called in our code
* since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it
* die if session secret is unset and on heroku
* First basic infrastructure for version information
2012-09-26 20:19:37 +02:00
Maxwell Salzberg
718f7e1dbb
Merge pull request #3260 from panckreous/twitter-conf
...
check for existence of key instead of checking secret twice
2012-06-26 10:34:08 -07:00
Maxwell Salzberg
06f389231a
kill services users with fire. we need this feature, but we need to just start from scratch because this is redonkalonk
2012-05-14 16:25:19 -07:00
Dan Berman
905e38e226
check for existence of key instead of checking secret twice
2012-05-13 13:34:02 -04:00
Maxwell Salzberg
273470e6ed
include url in all twitter posts
...
also fix a homecontroller spec
2012-05-03 20:07:56 -07:00
danielgrippi
a52d8f221a
don't post to feed; post to joindiaspora OG tag. also, whoever has the diaspora OG tag, can i haz?
2012-05-03 00:02:00 -07:00
danielgrippi
8cecedc53b
TIMELINE TIME.
2012-05-02 23:28:56 -07:00
Maxwell Salzberg
3cb7003361
remove the swallowing of generic messages from facebook and twitter postiing. I want to know why sometimes these things are failing
2012-03-19 19:17:46 -07:00
Maxwell Salzberg
bd021bbd91
Correct our general exception handling.
...
thanks @mperham! see: http://t.co/Jyt7vV4I
2012-03-03 16:26:06 -08:00
Steven Fuchs
5d15fa43b5
take url shortening into effect before truncating twitter posts
2012-01-29 17:42:17 -05:00
Maxwell Salzberg
2d4e6e4915
forgot to uncomment a line
2011-11-04 16:04:37 -07:00
Maxwell Salzberg
745e4dea8c
queue facebook lookup job, dont do it in process
2011-11-04 16:02:17 -07:00
Ilya Zhitomirskiy
d51516fff3
bumped carrierwave, photos can now be downloaded from a url, fetching profile photo job
2011-10-24 11:00:00 -07:00
Ilya Zhitomirskiy
c60adda3a9
WIP, almost done for twitter, just need to figure out how to follow redirects
2011-10-24 11:00:00 -07:00
Uiri
0fbda5d077
Modularized and Tested™
2011-09-29 21:04:18 -04:00
Uiri
3aa3b9aea8
Better regex solution
2011-09-26 23:59:33 -04:00
Uiri
82feff7fb4
Links in the message translate into a proper link on Facebook when sending to facebook.
2011-09-26 23:59:33 -04:00
Maxwell Salzberg
e865dfc269
fix a bug with emailing in posts going to tumblr
2011-09-16 13:57:38 -07:00
danielgrippi
c5fbe1584a
fix the build; don't test on enqueueing a job to fetch facebook friends every time we hit the facebook finder -- only do this on log in
2011-09-08 10:59:35 -07:00
Maxwell Salzberg
7f6104d27b
dont queue service user fetching every inf scroll
2011-09-07 13:25:00 -07:00
danielgrippi
a99e69edd6
down to 2 failures in postgres
2011-08-17 16:51:54 -07:00
danielgrippi
bf0eb3dac3
4 failures left in postgres
2011-08-17 14:18:51 -07:00
Raphael Sofaer
f0583de36c
Some optimizations to ServicesController#finder. Apparently setting an association on an unsaved record to an empty array hits the database.
2011-08-13 09:40:31 -07:00
Raphael Sofaer
31b55aef0b
Start saving the usernames of facebook users
2011-08-12 13:20:25 -07:00
Raphael Sofaer
201574c53a
Check for nil before building ServiceUser objects
2011-08-06 14:02:27 -07:00
Raphael Sofaer
8b7f938a63
Order the results of ServicesController#finder
2011-08-05 16:42:09 -07:00
Maxwell Salzberg
7e8f17cc31
refactoring this stuff
2011-08-03 16:58:55 -07:00
Raphael Sofaer
1aac60bee3
Make sure that not deleting the service_users doesn't leave them stale
2011-08-03 15:39:23 -07:00