Jonne Haß
dc12479070
Filter :id in User.build for now
...
Rails 4 seem to allow setting the id through supplied parameters
The controllers ported to strong_parameters should guard against
attacks over this vector, but I didn't want to remove the specs
that test this here
2014-08-23 16:34:01 +02:00
Jonne Haß
09f0665225
replace deprecated usages for all
2014-08-23 16:34:01 +02:00
Jonne Haß
cc8a614c29
Remove attr_accessible from OpenGraphCache
2014-08-23 16:34:01 +02:00
Jonne Haß
2f1193fa36
Fix "prepared statements" errors
...
See https://coderwall.com/p/45ombq
2014-08-23 16:34:00 +02:00
Jonne Haß
a9e107364a
make status message controller spec pass and deprecation free
2014-08-23 16:34:00 +02:00
Jonne Haß
2cca5745c9
remove deprecated scoped
2014-08-23 16:34:00 +02:00
Jonne Haß
cb195f4d55
access connection through class
2014-08-23 16:34:00 +02:00
Jonne Haß
2f54d4f17d
remove conditions on association deprecation warnings
2014-08-23 16:34:00 +02:00
Jonne Haß
89afb616cf
replace deprecated scope syntax and unify it
2014-08-23 16:34:00 +02:00
Jonne Haß
33c3b38f2f
replace deprecated finder and finder_options syntax
2014-08-23 16:34:00 +02:00
Jonne Haß
ec877e3784
Merge pull request #4978 from jhass/bump_acts_as_taggable_on
...
Bump acts-as-taggable-on
2014-08-18 12:20:19 +02:00
Jonne Haß
6fb6a08980
Merge pull request #4945 from hpetru/notifications
...
Refactoring Notification#notify
2014-07-01 14:33:54 +02:00
Jason Robinson
80075c13f4
Use different user.construct_public_followings_sql query depending on database backend.
...
This is done for performance reasons as a temporary fix for problems with 0.4.0.0 on MySQL. This madness is explained in issue https://github.com/diaspora/diaspora/issues/5014 .
2014-06-24 17:07:40 +03:00
Jonne Haß
72d1ed8f7d
bump acts-as-taggable-on
2014-06-01 18:42:51 +02:00
Jonne Haß
fc1f249129
Harden account deletion
...
* Wrap it into a transaction
* Use destroy over delete so dependent destroys get triggered
and we thus don't fail on the foreign key constraits
* Check if a photos status message actually exists before accessing
it
* Add missing dependent destroys
2014-05-27 00:15:15 +02:00
Jonne Haß
9537c45d2a
Merge pull request #4916 from hpetru/validate-poll-answer
...
I added the validation to poll question and poll answer
Conflicts:
app/assets/javascripts/app/views/publisher_view.js
2014-05-24 17:42:18 +02:00
Lukas Matt
8170ef8363
Validate on report that post or comment does exist
2014-05-16 09:48:14 -04:00
Jason Robinson
01381ddf25
Merge pull request #4957 from MrZYX/4956_deleted_reshare
...
Use absolute_root more consistently in Reshare
2014-05-16 10:00:31 +03:00
Lukas Matt
3d9fceb479
DB fix to work with existing entries
...
* added temp. default values for user_id and item_type
* changed model validation for item_type
2014-05-15 07:23:44 -04:00
Lukas Matt
218845d5b4
Changed and renamed database columns
...
* changed user_id type to integer
* renamed post_id to item_id
* renamed post_type to item_type
2014-05-15 07:23:44 -04:00
Lukas Matt
512d96bda6
Display validation errors to user
2014-05-15 07:23:43 -04:00
Lukas Matt
6309e1a4ee
Cleaned and optimized report model
2014-05-15 07:23:43 -04:00
Lukas Matt
26d0c81dae
Added the ability to disable report-email-notification
...
Podmin can see a extra checkbox in Settings > Account
for disabling report-email-notification
2014-05-15 07:23:43 -04:00
Lukas Matt
2e36f8d375
Diaspora review part 1
...
* join the conditions of the inner ifs
* add a uniqueness constraint to the model
* differentiate between author is a local or a remote user
* simplify controller/mailer functions
2014-05-15 07:23:43 -04:00
Lukas Matt
1748d3b940
It is now possible to report comments
...
* Renamed PostReport to Report
* Added report button to SPV
* Updated rspec
refs diaspora/diaspora#4732
refs diaspora/diaspora#4710
refs diaspora/diaspora#4711
refs diaspora/diaspora#4517
2014-05-15 07:23:43 -04:00
Jonne Haß
8a599e1c1d
Use absolute_root more consistently in Reshare
...
Closes #4956
2014-05-14 22:41:24 +02:00
Hincu Petru
7b42084cdb
Refactoring method Notification#notify
2014-05-06 11:58:51 +00:00
Jason Robinson
356096a7eb
Merge pull request #4836 from MrZYX/message_renderer
...
Introduce message renderer
2014-04-13 15:00:46 +03:00
Hincu Petru
57de031f6b
I added the validation for blank to poll question and poll answer
2014-04-07 17:17:41 +00:00
Jannik Streek
095d616198
fixed federation issue due to missing delegation + test + some minor tweaks
...
fixed indenting
renamed test
2014-04-06 20:58:58 +02:00
goobertron
5556420740
Fix missing translation in #4905 .
2014-04-05 17:06:40 +01:00
Jannik Streek
6f3844b73b
fixed language files, added rails cache counter for poll answer, fixed bug with same poll input for form
2014-03-31 18:14:08 +02:00
Jannik Streek
a9843ae996
added cucumber tests, updated spec with xml class test
2014-03-31 18:14:07 +02:00
Jannik Streek
7dcf11e629
fixed federation bug due to roxml missing underscore
2014-03-31 18:14:07 +02:00
Jannik Streek
12fabe2fb9
finalized voting design + some design fixes + improved code
2014-03-31 18:14:07 +02:00
Jannik Streek
d0a77ce6b3
design for poll participation implemented, saving works as well
2014-03-31 18:14:07 +02:00
Jannik Streek
04199837b3
poll creation done
2014-03-31 18:14:07 +02:00
Jannik Streek
95d98ff2b6
improved code for poll participation
2014-03-31 18:14:06 +02:00
Jannik Streek
c02414c36d
fixed wrong indenting and broken messages tab for polls
2014-03-31 18:14:06 +02:00
Jannik Streek
8a4f833d1d
added more tests for the poll federation + fixed broken rspec tests
2014-03-31 18:14:06 +02:00
Jannik Streek
5d560609e4
poll_participation_spec no longer fails, added poll_participation factory
2014-03-31 18:14:06 +02:00
Jannik Streek
fe67bdf2e7
added tests for poll federation and impl for the federation itself. Still in progess
2014-03-31 18:14:06 +02:00
Jannik Streek
dfbe17d046
Poll input fields and data model now available
...
question field of poll now in db
fixed merge issues
2014-03-31 18:14:06 +02:00
Steffen van Bergerem
f217a5bc11
Add filters to notifications controller
2014-03-19 17:54:22 +01:00
Jonne Haß
d4e046ecbc
Merge pull request #4787 from hincupetru/4726-infinite-photo-stream
...
Added limit by max_time to photos#index for prevent "infinite photo stream"
2014-03-15 19:07:48 +01: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
Hincu Petru
e0b23b2dc4
Fixed #4726 infinite photo stream
2014-03-12 22:22:24 +00:00
Fabian Rodriguez
9fc70a03a9
remove unused variable
2014-02-23 16:48:47 +01:00
Fabian Rodriguez
8d8d3c649a
remove aspect sorting logic
2014-02-23 16:48:47 +01:00
Jason Robinson
5fe5507128
Add devise_lastseenable for user last seen tracking.
...
Adds a timestamp to user model which is touched when user comes back. Statistics active users counts now use these more reliable timestamps. Fixes #4734
2014-02-22 23:22:46 +02:00
Ruxton
c8a0c81b6a
Updating queries for the stream to be faster
2014-02-07 14:23:19 +08:00
Steffen van Bergerem
3d4bdfb665
Drop number of followers from tags page
2014-01-21 14:49:05 +01:00
Florian Staudacher
5c059b2925
fix regression in conversations causing an infinite recursion ( fix #4715 )
2014-01-20 22:00:26 +01:00
Jonne Haß
9ea6e9c166
Merge pull request #4517 from Zauberstuhl/report_post_feature
...
Added post reporter feature
Conflicts:
Changelog.md
app/assets/stylesheets/application.css.sass
db/schema.rb
2014-01-20 10:03:45 +01:00
Dennis Schubert
6fc5ccb9f9
Merge pull request #4511 from MrZYX/bump_devise
...
update devise to 3.2
2014-01-15 13:17:48 -08:00
Jonne Haß
15b1dae362
update devise to 3.2
2014-01-15 12:59:59 +01:00
Lukas Matt
5c9a3aaf3e
Added post report feature
...
You can report a single post by clicking the correct icon in the controler section
Workflow:
* Report a post as offensive
* Trigger alerts to every pod-admin
* Pod-admin can review it in the admin interface
* Delete the post or mark it as reviewed
2014-01-14 15:00:55 -05:00
Ivan Zotov
a4ce6e267a
Fix after_create to after_commit
2014-01-14 22:35:29 +04:00
Jason Robinson
db71c9c50b
Add mobile signup page captcha. Add test for user.sign_up method. Rewrite simple_captcha views to haml. Revert .rvmrc, fix indentation in config examp$
2014-01-06 22:00:53 +02:00
maruf
c17a474142
Simple captcha for signup page
2014-01-06 22:00:37 +02: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ß
c660c90091
Merge pull request #4612 from diaspora/drop_spv_old_code
...
Drop spv old code
2013-12-11 07:41:51 -08:00
Fabian Rodriguez
6c8c4fc99e
remove template picker functionality
2013-12-03 20:53:00 -02:00
Jason Robinson
2c83d0e846
Statistics route with general info, some user and total posts stats. By default statistics off, enabled in settings.
2013-12-02 22:35:18 +02:00
Florian Staudacher
1c4ad0986c
refactor message creation (conversations)
2013-10-20 22:46:53 +02:00
Florian Staudacher
830747a11e
refactor conversations_controller#create
2013-10-10 21:42:46 +02:00
Jonne Haß
eea9467846
refactor twitter service model
2013-09-30 10:13:14 +02:00
Florian Staudacher
260d86d501
refactor ConversationsController, move query builing to User model
2013-09-30 01:44:57 +02:00
Florian Staudacher
e614562470
avoid publishing empty posts ( fixes #4401 )
...
invalidate empty posts when created by a local user
add changelog entry
2013-09-24 21:57:22 +02:00
Oliver Azevedo Barnes
c5a1078f45
Moved account_deleter as well, same tests break
2013-08-13 18:37:51 -05:00
Oliver Azevedo Barnes
7214dc184d
Remove namespacing from federation libs recently migrated from app/models/
2013-08-13 18:23:05 -05:00
Oliver Azevedo Barnes
1c9d65e94c
WIP refactor namespacing for federation libs, into Diaspora::Federated
2013-08-12 13:10:38 -05:00
Oliver Azevedo Barnes
5564644306
WIP
2013-08-12 13:10:38 -05:00
Oliver Azevedo Barnes
689abfb49c
Move non-model federation stuff into lib/
2013-08-12 13:10:38 -05: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
Jonne Haß
948939cd30
Merge pull request #4381 from goobertron/4380-facebook-count
...
Updated Facebook character limit.
2013-08-10 21:40:44 +02:00
goobertron
8bffdb873a
Updated Facebook character limit.
2013-08-10 00:18:49 +01:00
Oliver Azevedo Barnes
452301b34d
Fix #4361 twitter access level check breaking facebook addition to user
2013-08-07 18:59:49 -05:00
Jonne Haß
efbd3c8605
Merge pull request #4344 from oliverbarnes/4124-check-twitter-write-access-before-auth
...
Issue #4124 Check write access before authorizing Twitter
2013-08-06 21:21:56 +02:00
Oliver Azevedo Barnes
55a58713a5
Issue #4124 Check write access before authorizing Twitter
2013-08-05 13:52:19 -05:00
Jonne Haß
6689f20710
Merge pull request #4321 from andrewcsmith/feature/4100-add-support-for-posting-to-wordpress-as-a-service
...
Feature/4100 add support for posting to wordpress as a service
Conflicts:
Gemfile.lock
2013-08-04 17:15:39 +02: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
Fábián Tamás László
ba3d60b00f
Only parse opengraph if oembed is not available
2013-08-04 15:55:09 +02:00
Fábián Tamás László
43363c13e5
Code style fixes, removed unneeded rescue
2013-08-04 15:47:07 +02:00
Tamas Laszlo Fabian
3cead93dbc
Load og data faster (after_save -> after_commit)
2013-08-04 15:46:44 +02:00
Tamas Laszlo Fabian
22c644c2ae
Replaced opengraph with opengraph_parser
...
Code style fixes
2013-08-04 15:44:58 +02:00
Fábián Tamás László
176c6826e0
opengraph POC
...
Fixed small-frame opengraph view
Fixed incompletely saved OpenGraphCache bug
2013-08-04 15:42:29 +02:00
Meitar Moscovitz
7d40fd1add
Delete cross-posted Tumblr posts when user deletes their Diaspora post.
2013-08-03 04:23:22 -04:00
James Fleming
9ca9a6f310
Remove duplicates and bad code habits.
...
Remove some blank line.
Do not chain bang methods.
2013-08-02 11:39:24 +02:00
James Fleming
66a07bd938
Remove attributes protection.
...
Use a blacklist approach instead of a blacklist approach in Profile#receive.
Remove attr_accessible from models and make specs pass.
2013-08-02 11:39:06 +02:00
mokus
3ba63197e8
Fixes failing tests by changing user model
2013-08-02 11:39:05 +02:00
James Fleming
0e26a496b8
Strong parameters for User
...
Fetch user params instead of require.
2013-08-02 11:39:04 +02:00
James Fleming
b86b409f7d
Strong parameters for Conversation
2013-08-02 11:39:01 +02:00
James Fleming
509a407286
Strong parameters for Block
2013-08-02 11:39:01 +02:00
James Fleming
938de466f8
Strong parameters for Aspect
2013-08-02 10:09:04 +02:00
Plurrtard
6900146852
fix #4163 - Now updating correct contact attribute on retraction
...
Added test case for Issue #4163
2013-07-31 15:20:57 +02:00
carolina
f6fe74aeae
Migration to turn ActivityStreams::Photo to StatusMessage
...
deletes ActivityStream model and all it's references
update migration with the without_protection option to disable mass assignment protection
2013-07-31 15:15:08 +02: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
Ruxton
dce1531ba6
Changed follow_diasporahq to be configurable to auto follow any user on join.
...
Fixing example config file
Updated changelog
2013-07-06 13:02:27 +02:00