function UpdateProfileRemoteFunction.OnServerInvoke(m,U,q)local n=filterText(q,U.UserId,m.UserId)if n==q then m:SetAttribute("\115\116\097\116\117\115",n)return{success=true}else return{success=false,error=Constants.ErrorMsgs.InappropriateStatus}end end
-- Returns whether the inputted status passes the TextFilter, otherwise also returns an error
function UpdateProfileRemoteFunction.OnServerInvoke(playerFiring, playerSelected, statusText)
	local filteredStatus = filterText(statusText, playerSelected.UserId, playerFiring.UserId)
	if filteredStatus == statusText then
		playerFiring:SetAttribute("status", filteredStatus)
		return { success = true }
	else
		return {
			success = false,
			error = Constants.ErrorMsgs.InappropriateStatus,
		}
	end
end
