This question focuses on a specific aspect of this one: How to derive the likelihood function for binomial distribution for parameter estimation?
In my own derivation, I start with: $$f(x\mid p) = mC_x~p^x(1-p)^{m-x}$$
Ignoring $mC_x$, the likelihood function is then given by:
$$L(p) = \prod_{i=1}^np^{x_i}(1-p)^{m-x_i} = p^{\sum_1^n x_i}(1-p)^{\sum_1^n m-x_i} = p^{x}(1-p)^{nm-x}$$
However, in the question I referenced, they have this instead: $$\prod_{i=1}^np^{x_i}(1-p)^{1-x_i} = p^{\sum_1^n x_i}(1-p)^{\sum_1^n1-x_i} = p^{x}(1-p)^{n-x}$$
My question is, are both approaches correct? If so, why does the referenced question use $1$ in place of $m$ on the exponents?