mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix link to follow other users
This commit is contained in:
parent
2f3e1514df
commit
d3d53745ad
@ -21,7 +21,7 @@ class UserFollowingsController < ApplicationController
|
||||
|
||||
# POST /user_followings
|
||||
def create
|
||||
user = User.find_by(id: params[:followed_user_id])
|
||||
user = User.find_by(id: user_following_params.fetch(:followed_user_id))
|
||||
return unless user.present?
|
||||
return if user_signed_in? && current_user.blocked_by?(user)
|
||||
|
||||
|
||||
@ -110,5 +110,5 @@ Vehicle -
|
||||
|
||||
<div class="card-panel blue white-text">
|
||||
We're starting with a few collaborative collections that anyone can submit to and browse.
|
||||
The ability to create your own collections will be available soon.
|
||||
The ability to create your own collections will be available for more users soon.
|
||||
</div>
|
||||
@ -20,7 +20,7 @@
|
||||
<% else %>
|
||||
<%= form_for UserFollowing.new, method: :post do |f| %>
|
||||
<%= f.hidden_field :followed_user_id, value: @user.id %>
|
||||
<%= link_to '#', onclick: "$('#new_user_following').submit()", class: 'collection-item blue-text' do %>
|
||||
<%= link_to '#', onclick: "$('#new_user_following').first().submit()", class: 'collection-item blue-text' do %>
|
||||
Follow this user
|
||||
<span class="secondary-content">
|
||||
<i class="material-icons green-text"><%= User.icon %></i>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user