function UpdateProfileRemoteFunction.OnServerInvoke(A,L,D)local T=filterText(D,L.UserId,A.UserId)if T==D then A:SetAttribute("\115\116\097\116\117\115",T)return{success=true}else return{success=false;error=Constants.ErrorMsgs.InappropriateStatus}end end

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
