@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drop domain key on PhameBlog

Summary: Right now you can't create two blogs without a domain name, since it has a unique key on the column. Removing the key.

Test Plan: Create two blogs with no domain name, works as expected. Create two blogs with `cat.dog` as domain name, get duplicate domain error.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9360

Differential Revision: https://secure.phabricator.com/D14915

+6 -1
+6 -1
src/applications/phame/editor/PhameBlogEditor.php
··· 47 47 switch ($xaction->getTransactionType()) { 48 48 case PhameBlogTransaction::TYPE_NAME: 49 49 case PhameBlogTransaction::TYPE_DESCRIPTION: 50 - case PhameBlogTransaction::TYPE_DOMAIN: 51 50 case PhameBlogTransaction::TYPE_STATUS: 52 51 return $xaction->getNewValue(); 52 + case PhameBlogTransaction::TYPE_DOMAIN: 53 + $domain = $xaction->getNewValue(); 54 + if (!strlen($xaction->getNewValue())) { 55 + return null; 56 + } 57 + return $domain; 53 58 } 54 59 } 55 60