-- 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
