mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
Adds ability to parse plain-text tags
Tags that haven't been autocompleted and clicked on will be added as tags as well. There should only be one tag like this at a time, since adding a space between tags turns it into a list item.
This commit is contained in:
@@ -20,6 +20,7 @@ class ProfilesController < ApplicationController
|
||||
def update
|
||||
# upload and set new profile photo
|
||||
params[:profile] ||= {}
|
||||
params[:tags] << params[:profile][:tag_string] unless params[:profile][:tag_string].nil?
|
||||
params[:profile][:tag_string] = (params[:tags]) ? params[:tags].gsub(',',' ') : ""
|
||||
params[:profile][:searchable] ||= false
|
||||
params[:profile][:photo] = Photo.where(:author_id => current_user.person.id,
|
||||
|
||||
Reference in New Issue
Block a user