Migated PinLine/Unlike to api method, refs #328